summaryrefslogtreecommitdiff
path: root/win32/inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/inet.c')
-rw-r--r--win32/inet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/inet.c b/win32/inet.c
index b794bcaeb4..d424c8a546 100644
--- a/win32/inet.c
+++ b/win32/inet.c
@@ -1,11 +1,12 @@
#include "config.w32.h"
-#if (_WIN32_WINNT < 0x0600) /* Vista/2k8 have these functions */
#include "php.h"
#include <winsock2.h>
#include <windows.h>
#include <Ws2tcpip.h>
#include "inet.h"
+#if (_WIN32_WINNT < 0x0600) /* Vista/2k8 have these functions */
+
PHPAPI int inet_pton(int af, const char* src, void* dst)
{
@@ -76,6 +77,8 @@ PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size)
return NULL;
}
+#endif
+
int inet_aton(const char *cp, struct in_addr *inp) {
inp->s_addr = inet_addr(cp);
@@ -85,4 +88,3 @@ int inet_aton(const char *cp, struct in_addr *inp) {
return 1;
}
-#endif