From 07b410447b3a6660f9c0948fb4eea36eff14504c Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 10 Apr 2025 10:02:20 -0300 Subject: [PATCH] fix missing weird types --- mongoose.h | 3 +-- src/arch_win32.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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