From: Brendan Hansen Date: Wed, 4 May 2022 17:03:16 +0000 (-0500) Subject: nevermind; winsock.h breaks many things X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=12ecf457bddd5894183f03bad56fb86a818ae09b;p=onyx.git nevermind; winsock.h breaks many things --- diff --git a/include/small_windows.h b/include/small_windows.h index 07062261..45d8c1c4 100644 --- a/include/small_windows.h +++ b/include/small_windows.h @@ -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); diff --git a/src/onyx_runtime.c b/src/onyx_runtime.c index 1bbacf2b..33410e02 100644 --- a/src/onyx_runtime.c +++ b/src/onyx_runtime.c @@ -20,10 +20,6 @@ #include #endif -#ifdef _BH_WINDOWS - #include -#endif - #include "types.h" // For POINTER_SIZE #define ONYX_FILE_ERROR_NONE 0