From 70a1ee81f90023571abd8c037753838ac0b72457 Mon Sep 17 00:00:00 2001 From: dankmeme01 <42031238+dankmeme01@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:57:24 +0200 Subject: [PATCH] stop including winsock --- loader/include/Geode/cocos/platform/win32/CCStdC.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/loader/include/Geode/cocos/platform/win32/CCStdC.h b/loader/include/Geode/cocos/platform/win32/CCStdC.h index edc00be14..5cd766573 100644 --- a/loader/include/Geode/cocos/platform/win32/CCStdC.h +++ b/loader/include/Geode/cocos/platform/win32/CCStdC.h @@ -71,13 +71,7 @@ THE SOFTWARE. #include "./compat/stdint.h" #endif -#define _WINSOCKAPI_ -// Structure timeval has define in winsock.h, include windows.h for it. -#include - -#ifndef __MINGW32__ - -// #include +struct timeval; NS_CC_BEGIN @@ -91,11 +85,5 @@ int CC_DLL gettimeofday(struct timeval *, struct timezone *); NS_CC_END -#else - -#include - -#endif // __MINGW32__ - #endif // __CC_STD_C_H__