Some Win32 changes for clean compile of IPv6.

This commit is contained in:
skarg
2016-10-25 13:43:14 +00:00
parent c7147f3805
commit d612ae6567
2 changed files with 10 additions and 5 deletions
+7 -2
View File
@@ -29,8 +29,13 @@
#define WIN32_LEAN_AND_MEAN
#define STRICT 1
/* Windows XP minimum */
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x501
#if (_WIN32_WINNT < 0x501)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x501
#undef NTDDI_VERSION
#define NTDDI_VERSION _NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
#endif
#include <windows.h>
#if (!defined(USE_INADDR) || (USE_INADDR == 0)) && \
+3 -3
View File
@@ -8,10 +8,10 @@
#if !defined(__cplusplus)
#if !defined(__GNUC__) && !defined(_MSC_VER)
#if !defined(__GNUC__)
/* _Bool builtin type is included in GCC */
/* ISO C Standard: 5.2.5 An object declared as
type _Bool is large enough to store
/* ISO C Standard: 5.2.5 An object declared as
type _Bool is large enough to store
the values 0 and 1. */
/* We choose 8 bit to match C++ */
/* It must also promote to integer */