summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGerrit P. Haase <gp@familiehaase.de>2002-05-29 10:06:43 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-29 11:58:43 +0000
commit026fd48b7e5bb16823ca7a3c78b4542ca28cbd50 (patch)
tree5c9551cd09e9064c1392f5198c405b24ddd7fe3e /perl.h
parent21cdd7e3cb41078561fcb9d861126c7fa903ce8b (diff)
downloadperl-026fd48b7e5bb16823ca7a3c78b4542ca28cbd50.tar.gz
Re: [PATCHES] Re: libwin32 on Cygwin?
From: "Gerrit P. Haase" <gp@familiehaase.de> Message-ID: <1881715214417.20020529080643@familiehaase.de> p4raw-id: //depot/perl@16853
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 43678eee82..0403345719 100644
--- a/perl.h
+++ b/perl.h
@@ -77,6 +77,12 @@
# endif
#endif
+/* undef WIN32 when building on Cygwin (for libwin32) - gph */
+#ifdef __CYGWIN__
+# undef WIN32
+# undef _WIN32
+#endif
+
/* Use the reentrant APIs like localtime_r and getpwent_r */
/* Win32 has naturally threadsafe libraries, no need to use any _r variants. */
#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) && !defined(NETWARE) && !defined(WIN32) && !defined(__APPLE__)