From e0c8264a7d2c29fcab5a20788fe33ea748185cdb Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 7 Apr 2021 13:29:46 +0200 Subject: [PATCH] config_win32.h: define version macros first In Linux, MinGW headers define that if undefined to 0x502, which is incompatible with version required by rang.hpp (0x0600). --- src/config_win32.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/config_win32.h b/src/config_win32.h index e84e4314b..f1c20e82d 100644 --- a/src/config_win32.h +++ b/src/config_win32.h @@ -52,6 +52,16 @@ #define __MSVCRT_VERSION__ 0x700 #endif +// 0x0501 is Win XP, 0x0502 2003 Server, 0x0600 Win Vista and Win 7 is 0x0601 +#ifndef WINVER +#define WINVER _WIN32_WINNT_WIN7 +#endif /* WINVER */ +#ifndef _WIN32_WINNT +#define _WIN32_WINNT _WIN32_WINNT_WIN7 +#endif /* _WIN32_WINNT */ + +#define WIN32_LEAN_AND_MEAN + #include "config_common.h" #include @@ -64,16 +74,6 @@ #include /* abs() */ #include -// 0x0501 is Win XP, 0x0502 2003 Server, 0x0600 Win Vista and Win 7 is 0x0601 -#ifndef WINVER -#define WINVER 0x0601 -#endif /* WINVER */ -#ifndef _WIN32_WINNT -#define _WIN32_WINNT 0x0601 -#endif /* _WIN32_WINNT */ - -#define WIN32_LEAN_AND_MEAN - #include #include