Skip to content
Snippets Groups Projects
Commit fe1b5820 authored by Stephen Hurd's avatar Stephen Hurd
Browse files

Don't try to include wspiapi.h on XP or newer

parent a25dea45
Branches
No related tags found
No related merge requests found
......@@ -40,7 +40,9 @@
#if defined(__BORLANDC__)
#undef _MSC_VER
#endif
#include <wspiapi.h> /* getaddrinfo() for Windows 2k */
#if (_WIN32_WINNT < _WIN32_WINNT_WINXP)
#include <wspiapi.h> /* getaddrinfo() for Windows 2k */
#endif
#define SOCK_MAXADDRLEN sizeof(SOCKADDR_STORAGE)
/* Let's agree on a standard WinSock symbol here, people */
#define _WINSOCKAPI_
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment