From 12ecf457bddd5894183f03bad56fb86a818ae09b Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 4 May 2022 12:03:16 -0500 Subject: [PATCH] nevermind; winsock.h breaks many things --- include/small_windows.h | 5 +++++ src/onyx_runtime.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.25.1