1 #if !defined(_LOCAL_WIN32_H) && defined(__WIN32__) 2 #define _LOCAL_WIN32_H 3 4 #ifdef HAVE_CONFIG_H 5 #include "config.h" 6 #endif 7 8 #ifdef __MINGW32__ 9 /* MingW32 specific stuff here. */ 10 # if defined(HAVE_WINSOCK2_H) && defined(HAVE_LIBWSOCK32) 11 /* We have to override the detected configuration 12 because it can't detect the network libraries. */ 13 # define HAVE_GETHOSTBYNAME 1 14 # define HAVE_INET_ADDR 1 15 # define HAVE_SOCKET 1 16 # endif 17 #else 18 /* MSVC++ configuration follows */ 19 # undef HAVE_UNISTD_H 20 # define HAVE_STDLIB_H 1 21 # define HAVE_WINDOWS_H 1 22 # define HAVE_STDARG_H 1 23 #endif /* __MINGW32__ */ 24 25 #ifdef HAVE_WINDOWS_H 26 # include <windows.h> 27 #endif 28 #ifdef HAVE_WINSOCK2_H 29 # include <winsock2.h> 30 #endif 31 32 33 34 #endif /* _LOCAL_WIN32_H */ |