Skip to content

Commit

Permalink
stop including winsock
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Sep 21, 2024
1 parent b53759f commit 70a1ee8
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions loader/include/Geode/cocos/platform/win32/CCStdC.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Windows.h>

#ifndef __MINGW32__

// #include <WinSock2.h>
struct timeval;

NS_CC_BEGIN

Expand All @@ -91,11 +85,5 @@ int CC_DLL gettimeofday(struct timeval *, struct timezone *);

NS_CC_END

#else

#include <winsock.h>

#endif // __MINGW32__

#endif // __CC_STD_C_H__

0 comments on commit 70a1ee8

Please sign in to comment.