summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-06 19:28:31 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-06 19:28:31 +0000
commitd308986b5b369caa1602a636a5e2ecfa149dfc89 (patch)
tree5e4539c17b4ffa8bb9cd7da74aa918d3204193f0 /ext
parent66fbe9e21b14c795ac9035c7be86e21c370a7532 (diff)
downloadperl-d308986b5b369caa1602a636a5e2ecfa149dfc89.tar.gz
use builtin __CYGWIN__ rather than -DCYGWIN (from Eric Fifer
<EFifer@sanwaint.com>) p4raw-id: //depot/perl@5008
Diffstat (limited to 'ext')
-rw-r--r--ext/POSIX/POSIX.xs4
-rw-r--r--ext/SDBM_File/sdbm/pair.c2
-rw-r--r--ext/SDBM_File/sdbm/sdbm.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 4c96f12e4f..af43c40714 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -106,7 +106,7 @@
}
# define times(t) vms_times(t)
#else
-#if defined (CYGWIN)
+#if defined (__CYGWIN__)
# define tzname _tzname
#endif
#if defined (WIN32)
@@ -289,7 +289,7 @@ unsigned long strtoul (const char *, char **, int);
#endif
#ifdef HAS_TZNAME
-# if !defined(WIN32) && !defined(CYGWIN)
+# if !defined(WIN32) && !defined(__CYGWIN__)
extern char *tzname[];
# endif
#else
diff --git a/ext/SDBM_File/sdbm/pair.c b/ext/SDBM_File/sdbm/pair.c
index c2ed213036..4f0fde2302 100644
--- a/ext/SDBM_File/sdbm/pair.c
+++ b/ext/SDBM_File/sdbm/pair.c
@@ -8,7 +8,7 @@
*/
#include "config.h"
-#ifdef CYGWIN
+#ifdef __CYGWIN__
# define EXTCONST extern const
#else
# include "EXTERN.h"
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c
index 5952d719e7..f58f4487c8 100644
--- a/ext/SDBM_File/sdbm/sdbm.c
+++ b/ext/SDBM_File/sdbm/sdbm.c
@@ -128,7 +128,7 @@ sdbm_prep(char *dirname, char *pagname, int flags, int mode)
* open the files in sequence, and stat the dirfile.
* If we fail anywhere, undo everything, return NULL.
*/
-#if defined(OS2) || defined(MSDOS) || defined(WIN32) || defined(CYGWIN)
+#if defined(OS2) || defined(MSDOS) || defined(WIN32) || defined(__CYGWIN__)
flags |= O_BINARY;
# endif
if ((db->pagf = open(pagname, flags, mode)) > -1) {