nevermind; winsock.h breaks many things
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 4 May 2022 17:03:16 +0000 (12:03 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 4 May 2022 17:03:16 +0000 (12:03 -0500)
include/small_windows.h
src/onyx_runtime.c

index 0706226160405536fbc682362eecb6856f2d678e..45d8c1c46b90211022d9dbd497568fbc52a956a4 100644 (file)
@@ -433,3 +433,8 @@ GB_DLL_IMPORT void WINAPI ExitProcess(UINT exit_code);
 
 GB_DLL_IMPORT BOOL  WINAPI SetEnvironmentVariableA(char const *name, char const *value);
 GB_DLL_IMPORT DWORD WINAPI GetEnvironmentVariableA(char const * lpName, char * lpBuffer, DWORD nSize);
+
+GB_DLL_IMPORT short WINAPI htons(short hostshort);
+GB_DLL_IMPORT int   WINAPI htonl(int   hostint);
+GB_DLL_IMPORT short WINAPI ntohs(short netshort);
+GB_DLL_IMPORT int   WINAPI ntohl(int   netint);
index 1bbacf2bd02e150dd3bad71a1fb1d8c1b0cac44c..33410e0238507a9f66a02fab62656308599d9f4c 100644 (file)
     #include <poll.h>
 #endif
 
-#ifdef _BH_WINDOWS
-    #include <winsock.h>
-#endif
-
 #include "types.h"  // For POINTER_SIZE
 
 #define ONYX_FILE_ERROR_NONE 0