More compatibility macros

Undefine SLIST_ENTRY to avoid conflict with WinNT.h

Define AI_NUMERICSERV for platforms that don't define it.
This commit is contained in:
Asanka C. Herath
2010-11-18 20:53:24 -05:00
parent 35ac353f73
commit 538c7ce29c

View File

@@ -150,6 +150,11 @@
#endif /* !_WIN32 */
/* Minimize conflict with WinNT.h */
#ifdef SLIST_ENTRY
#undef SLIST_ENTRY
#endif
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
@@ -221,6 +226,10 @@
#define AI_NUMERICHOST 0x04
#endif
#ifndef AI_NUMERICSERV
#define AI_NUMERICSERV 0x08
#endif
/* flags for getnameinfo() */
#ifndef NI_DGRAM