Permalink
Browse files

Do not compile gai_strerrorA on Windows under MingW. gai_strerror is …

…already

available on MingW, it's only missing from Cygwin.
  • Loading branch information...
1 parent 9306b9c commit 19229f0c12727e9e7b77dd7c234e2cc87e99383c gianluca committed Sep 19, 2007
Showing with 6 additions and 0 deletions.
  1. +6 −0 Win32/Src/gai_strerror.c
View
@@ -67,6 +67,11 @@ static char *ai_errlist[] = {
#define EAI_MAX (sizeof(ai_errlist)/sizeof(ai_errlist[0]))
#endif
+/* on MingW, gai_strerror is available.
+ We need to compile gai_strerrorA only for Cygwin
+ */
+#ifndef gai_strerror
+
char *
WSAAPI gai_strerrorA(int ecode)
{
@@ -75,3 +80,4 @@ WSAAPI gai_strerrorA(int ecode)
return "Unknown error";
}
+#endif /* gai_strerror */

0 comments on commit 19229f0

Please sign in to comment.