aboutsummaryrefslogtreecommitdiff
path: root/tests/server/util.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-11 16:01:16 +0000
committerYang Tse <yangsita@gmail.com>2006-10-11 16:01:16 +0000
commite150150d9f1e0578c85af05de15ab6336066cec1 (patch)
tree7ccad4887ea68afc2ce0503b4fa7a913fdd40d60 /tests/server/util.c
parent943f0733bb187dfacdfdc23806ab030cee97c9fc (diff)
Remove redundant __CYGWIN__ symbol check
Diffstat (limited to 'tests/server/util.c')
-rw-r--r--tests/server/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index 724cb8517..7bf8bdc82 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -65,7 +65,7 @@ const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
*/
int ourerrno(void)
{
-#if defined(WIN32) && !defined(__CYGWIN__)
+#ifdef WIN32
return (int)GetLastError();
#else
return errno;
@@ -101,7 +101,7 @@ void logmsg(const char *msg, ...)
}
}
-#if defined(REAL_WIN32)
+#ifdef WIN32
/* use instead of perror() on generic windows */
void win32_perror (const char *msg)
{
@@ -145,7 +145,7 @@ void win32_cleanup(void)
{
WSACleanup();
}
-#endif /* REAL_WIN32 */
+#endif /* WIN32 */
/* set by the main code to point to where the test dir is */
const char *path=".";