1 #if _MSC_VER >= 1500 2 # include <In6addr.h> 3 #endif 4 #include <Ws2tcpip.h> 5 6 #if (_WIN32_WINNT < 0x0600) 7 PHPAPI int inet_pton(int af, const char* src, void* dst); 8 PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size); 9 PHPAPI int inet_aton(const char *cp, struct in_addr *inp); 10 #endif 11