]> granicus.if.org Git - php/commitdiff
- MFB: fix logic, build correctly when the build targets xp/2k
authorPierre Joye <pajoye@php.net>
Sat, 23 Aug 2008 19:55:44 +0000 (19:55 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 23 Aug 2008 19:55:44 +0000 (19:55 +0000)
win32/inet.c
win32/inet.h

index 117c6d83d1892fc0235c15268385f2131c2dcf2c..02d00ca4749138ebbdb3d8bace7bdf5e2d3f4154 100644 (file)
@@ -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 <winsock2.h>
 #include <windows.h>
index 41a92da27234da0f19926f4dd28bdcc74f2947b3..7988bdb9e259e03b8d9f6369067e9aee06a25c7d 100644 (file)
@@ -2,8 +2,7 @@
 # include <In6addr.h>
 #endif
 #include <Ws2tcpip.h>
-
-#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);