mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
commit
e2d223b564
2 changed files with 10 additions and 3 deletions
|
@ -306,8 +306,18 @@ typedef struct {
|
|||
#define WINVER Windows2000
|
||||
#endif
|
||||
|
||||
// Trick to distinguish between MSYS/MinGW and MSYS2/MinGW32, the latter defines
|
||||
// __MINGW32_MAJOR_VERSION and __MINGW32_MINOR_VERSION for compatibility
|
||||
// but to a lower version than older MSYS/MinGW, but not the compound version
|
||||
//
|
||||
#if defined(__MINGW32_VERSION)
|
||||
#define __USE_W32_SOCKETS
|
||||
#include <windows.h>
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#undef __OBJC_BOOL
|
||||
#undef BOOL
|
||||
|
|
|
@ -22,9 +22,6 @@
|
|||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "common.h"
|
||||
#define EXPOSE_NSFileHandle_IVARS 1
|
||||
#define EXPOSE_GSFileHandle_IVARS 1
|
||||
|
|
Loading…
Reference in a new issue