stop including winsock
Some checks failed
Build Binaries / Build Windows (push) Has been cancelled
Build Binaries / Build macOS (push) Has been cancelled
Build Binaries / Build Android (64-bit) (push) Has been cancelled
Build Binaries / Build Android (32-bit) (push) Has been cancelled
Build Binaries / Publish (push) Has been cancelled

This commit is contained in:
dankmeme01 2024-09-21 18:57:24 +02:00
parent b53759fcb5
commit 70a1ee81f9

View file

@ -71,13 +71,7 @@ THE SOFTWARE.
#include "./compat/stdint.h" #include "./compat/stdint.h"
#endif #endif
#define _WINSOCKAPI_ struct timeval;
// Structure timeval has define in winsock.h, include windows.h for it.
#include <Windows.h>
#ifndef __MINGW32__
// #include <WinSock2.h>
NS_CC_BEGIN NS_CC_BEGIN
@ -91,11 +85,5 @@ int CC_DLL gettimeofday(struct timeval *, struct timezone *);
NS_CC_END NS_CC_END
#else
#include <winsock.h>
#endif // __MINGW32__
#endif // __CC_STD_C_H__ #endif // __CC_STD_C_H__