diff --git a/mongoose.h b/mongoose.h index f8f44725..975741d4 100644 --- a/mongoose.h +++ b/mongoose.h @@ -488,12 +488,12 @@ typedef enum { false = 0, true = 1 } bool; #include #include +#include // fix missing macros and types // For mg_random() #if defined(_MSC_VER) && _MSC_VER < 1700 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x400 // Let vc98 pick up wincrypt.h -#include // and fix missing macros #endif #include #pragma comment(lib, "advapi32.lib") @@ -526,7 +526,6 @@ typedef unsigned long nfds_t; #endif #if MG_ENABLE_WINSOCK -#include #define MG_INVALID_SOCKET INVALID_SOCKET #define MG_SOCKET_TYPE SOCKET diff --git a/src/arch_win32.h b/src/arch_win32.h index 80968a7e..97d272e7 100644 --- a/src/arch_win32.h +++ b/src/arch_win32.h @@ -66,12 +66,12 @@ typedef enum { false = 0, true = 1 } bool; #include #include +#include // fix missing macros and types // For mg_random() #if defined(_MSC_VER) && _MSC_VER < 1700 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x400 // Let vc98 pick up wincrypt.h -#include // and fix missing macros #endif #include #pragma comment(lib, "advapi32.lib") @@ -104,7 +104,6 @@ typedef unsigned long nfds_t; #endif #if MG_ENABLE_WINSOCK -#include #define MG_INVALID_SOCKET INVALID_SOCKET #define MG_SOCKET_TYPE SOCKET