summaryrefslogtreecommitdiff
path: root/win32/inet.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/inet.h')
-rw-r--r--win32/inet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/inet.h b/win32/inet.h
new file mode 100644
index 0000000..e580838
--- /dev/null
+++ b/win32/inet.h
@@ -0,0 +1,10 @@
+#if _MSC_VER >= 1500
+# include <In6addr.h>
+#endif
+#include <Ws2tcpip.h>
+
+#if (_WIN32_WINNT < 0x0600)
+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);
+#endif