diff --git a/nbase/nbase_winconfig.h b/nbase/nbase_winconfig.h index 3dd26638f..97ef669bc 100644 --- a/nbase/nbase_winconfig.h +++ b/nbase/nbase_winconfig.h @@ -126,6 +126,17 @@ #ifndef NBASE_WINCONFIG_H #define NBASE_WINCONFIG_H + +/* Define the earliest version of Windows we support. These control +what parts of the Windows API are available. The available constants +are in . +http://msdn.microsoft.com/en-us/library/aa383745.aspx +http://blogs.msdn.com/oldnewthing/archive/2007/04/11/2079137.aspx */ +#undef _WIN32_WINNT +#define _WIN32_WINNT _WIN32_WINNT_WIN6 +#undef NTDDI_VERSION +#define NTDDI_VERSION NTDDI_WIN6 + //This disables the warning 4800 http://msdn.microsoft.com/en-us/library/b6801kcy(v=vs.71).aspx #pragma warning(disable : 4800) /* It doesn't really have struct IP, but we use a different one instead diff --git a/nbase/nbase_winunix.h b/nbase/nbase_winunix.h index 79dbcfc2c..39e94dca5 100644 --- a/nbase/nbase_winunix.h +++ b/nbase/nbase_winunix.h @@ -125,15 +125,6 @@ #ifndef NBASE_WINUNIX_H #define NBASE_WINUNIX_H -/* Define the earliest version of Windows we support. These control - what parts of the Windows API are available. The available constants - are in . - http://msdn.microsoft.com/en-us/library/aa383745.aspx - http://blogs.msdn.com/oldnewthing/archive/2007/04/11/2079137.aspx */ -#undef _WIN32_WINNT -#define _WIN32_WINNT _WIN32_WINNT_WIN6 -#undef NTDDI_VERSION -#define NTDDI_VERSION NTDDI_WIN6 #include "nbase_winconfig.h"