Fix DqnArray and add framework for Winsock

This commit is contained in:
Doyle T 2018-07-04 20:10:11 +10:00
parent 49577e2c27
commit a4c7934587
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
#define WIN32_MEAN_AND_LEAN
#include <Winsock2.h>
#include <ws2tcpip.h>
#include <Windows.h>
#if (defined(_WIN32) || defined(_WIN64))
#define DQN_WIN32_IMPLEMENTATION
#include "Windows.h"
@ -136,6 +141,7 @@ void LogHeader(char const *funcName)
}
#include "DqnFixedString.cpp"
#include "DqnOS.cpp"
void HandmadeMathVerifyMat4(DqnMat4 dqnMat, hmm_mat4 hmmMat)
{
@ -2897,7 +2903,7 @@ int main(void)
DqnFixedString_Test();
#ifdef DQN_PLATFORM_HEADER
// DqnOS_Test();
DqnOS_Test();
DqnFile_Test();
DqnTimer_Test();
DqnJobQueue_Test();

View File

@ -58,7 +58,7 @@ REM Include directories
set IncludeFlags=
REM Link libraries
set LinkLibraries=user32.lib
set LinkLibraries=user32.lib ws2_32.lib
REM incrmenetal:no, turn incremental builds off
REM opt:ref, try to remove functions from libs that are referenced at all