Some Win32 changes for clean compile of IPv6.
This commit is contained in:
@@ -29,8 +29,13 @@
|
|||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#define STRICT 1
|
#define STRICT 1
|
||||||
/* Windows XP minimum */
|
/* Windows XP minimum */
|
||||||
#undef _WIN32_WINNT
|
#if (_WIN32_WINNT < 0x501)
|
||||||
#define _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>
|
#include <windows.h>
|
||||||
#if (!defined(USE_INADDR) || (USE_INADDR == 0)) && \
|
#if (!defined(USE_INADDR) || (USE_INADDR == 0)) && \
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
#if !defined(__cplusplus)
|
#if !defined(__cplusplus)
|
||||||
|
|
||||||
#if !defined(__GNUC__) && !defined(_MSC_VER)
|
#if !defined(__GNUC__)
|
||||||
/* _Bool builtin type is included in GCC */
|
/* _Bool builtin type is included in GCC */
|
||||||
/* ISO C Standard: 5.2.5 An object declared as
|
/* ISO C Standard: 5.2.5 An object declared as
|
||||||
type _Bool is large enough to store
|
type _Bool is large enough to store
|
||||||
the values 0 and 1. */
|
the values 0 and 1. */
|
||||||
/* We choose 8 bit to match C++ */
|
/* We choose 8 bit to match C++ */
|
||||||
/* It must also promote to integer */
|
/* It must also promote to integer */
|
||||||
|
|||||||
Reference in New Issue
Block a user