diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-06-25 12:01:58 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-06-25 12:01:58 +0000 |
commit | ec79f5e0dbe50dc2eaf7c6cb39fa3579b2b98529 (patch) | |
tree | abb058c92f2f0f5d408c25e5bf9a15c07f3ff5c1 /w32 | |
parent | 0320b1739262f08f5f744f1584d41c7700d366cb (diff) | |
download | libmicrohttpd-ec79f5e0dbe50dc2eaf7c6cb39fa3579b2b98529.tar.gz libmicrohttpd-ec79f5e0dbe50dc2eaf7c6cb39fa3579b2b98529.zip |
mhd_str: improved compatibility with older compilers, including VS2010, VS2012
Diffstat (limited to 'w32')
-rw-r--r-- | w32/common/MHD_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/w32/common/MHD_config.h b/w32/common/MHD_config.h index c5b32e72..9844c8bb 100644 --- a/w32/common/MHD_config.h +++ b/w32/common/MHD_config.h | |||
@@ -10,7 +10,11 @@ | |||
10 | #define MSVC 1 | 10 | #define MSVC 1 |
11 | 11 | ||
12 | /* Define to type which will be used as boolean type. */ | 12 | /* Define to type which will be used as boolean type. */ |
13 | #if _MSC_VER+0 >= 1800 | ||
13 | #define _MHD_bool _Bool | 14 | #define _MHD_bool _Bool |
15 | #else /* before VS 2013 */ | ||
16 | #define _MHD_bool int | ||
17 | #endif /* before VS 2013 */ | ||
14 | 18 | ||
15 | /* Define to 1 if your C compiler supports inline functions. */ | 19 | /* Define to 1 if your C compiler supports inline functions. */ |
16 | #define INLINE_FUNC 1 | 20 | #define INLINE_FUNC 1 |