From 539c6c305a5d5977db32805cb7671a689649909e Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 16 Nov 2013 01:53:00 +1000 Subject: [PATCH] Fix Win32 GOS layer to allow later inclusion of WinSock2. --- include/gos/win32.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/gos/win32.h b/include/gos/win32.h index 766be3af..121bdb5a 100644 --- a/include/gos/win32.h +++ b/include/gos/win32.h @@ -15,8 +15,15 @@ #if GFX_USE_OS_WIN32 -//#define WIN32_LEAN_AND_MEAN +#ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 // Windows XP and up +#endif + +#define WIN32_LEAN_AND_MEAN #include +#undef WIN32_LEAN_AND_MEAN + +#include /* Stop cygwin from defining these types */ #define __int8_t_defined