From 1c4e7be721a4b2b5086707b2fe4e60df0c8e57a1 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 23 Aug 2008 19:55:44 +0000 Subject: [PATCH] - MFB: fix logic, build correctly when the build targets xp/2k --- win32/inet.c | 2 +- win32/inet.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/win32/inet.c b/win32/inet.c index 117c6d83d1..02d00ca474 100644 --- a/win32/inet.c +++ b/win32/inet.c @@ -1,5 +1,5 @@ -#if _MSC_VER < 1500 #include "config.w32.h" +#if (_WIN32_WINNT < 0x0600) /* Vita/2k8 have these functions */ #include "php.h" #include #include diff --git a/win32/inet.h b/win32/inet.h index 41a92da272..7988bdb9e2 100644 --- a/win32/inet.h +++ b/win32/inet.h @@ -2,8 +2,7 @@ # include #endif #include - -#if _MSC_VER < 1500 +#if (_WIN32_WINNT < 0x0600) /* Vita/2k8 have these functions */ PHPAPI int inet_pton(int af, const char* src, void* dst); PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size); PHPAPI int inet_aton(const char *cp, struct in_addr *inp); -- 2.40.0