diff options
author | Yang Tse <yangsita@gmail.com> | 2006-10-18 21:05:40 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-10-18 21:05:40 +0000 |
commit | 5df4be11657fc49d74e1e6b39c0003f7cf2f3772 (patch) | |
tree | 93d2ef65b7accbd9a6572dbfca634dc69e95ffce /lib/strerror.c | |
parent | 96445f1b7da2013c294c541530f0160e248b430e (diff) |
Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.
Diffstat (limited to 'lib/strerror.c')
-rw-r--r-- | lib/strerror.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/strerror.c b/lib/strerror.c index 5a1a83dd1..62ccfe9a0 100644 --- a/lib/strerror.c +++ b/lib/strerror.c @@ -382,7 +382,7 @@ curl_share_strerror(CURLSHcode error) #endif } -#ifdef WIN32 +#ifdef USE_WINSOCK /* This function handles most / all (?) Winsock errors cURL is able to produce. */ @@ -570,7 +570,7 @@ get_winsock_error (int err, char *buf, size_t len) buf [len-1] = '\0'; return buf; } -#endif /* WIN32 */ +#endif /* USE_WINSOCK */ /* * Our thread-safe and smart strerror() replacement. @@ -595,7 +595,7 @@ const char *Curl_strerror(struct connectdata *conn, int err) max = sizeof(conn->syserr_buf)-1; *buf = '\0'; -#ifdef WIN32 +#ifdef USE_WINSOCK #ifdef _WIN32_WCE buf[0]=0; @@ -619,7 +619,7 @@ const char *Curl_strerror(struct connectdata *conn, int err) snprintf(buf, max, "Unknown error %d (%#x)", err, err); } #endif -#else /* not native Windows coming up */ +#else /* not USE_WINSOCK coming up */ /* These should be atomic and hopefully thread-safe */ #ifdef HAVE_STRERROR_R @@ -647,7 +647,7 @@ const char *Curl_strerror(struct connectdata *conn, int err) #else /* HAVE_STRERROR_R */ strncpy(buf, strerror(err), max); #endif /* end of HAVE_STRERROR_R */ -#endif /* end of ! Windows */ +#endif /* end of ! USE_WINSOCK */ buf[max] = '\0'; /* make sure the string is zero terminated */ |