summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-17 17:39:05 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-17 17:39:05 +0000
commitf40555790a1068ef35b222c83b838412b161e9b2 (patch)
tree25050b2e927d36ed600c8d306fc7209d15eb5bc0 /defines.h
parent8223f8b348d9524c5dfb6cfa416a7d20685bf4e1 (diff)
* defines.h (_WIN32): undef _WIN32 on Cygwin before defining DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/defines.h b/defines.h
index 1cab4aef6b..d59bcc8ef4 100644
--- a/defines.h
+++ b/defines.h
@@ -82,6 +82,10 @@ void xfree _((void*));
# define BDIGIT_DBL_SIGNED long
#endif
+#ifdef __CYGWIN__
+#undef _WIN32
+#endif
+
#if defined(MSDOS) || defined(_WIN32) || defined(__human68k__) || defined(__EMX__)
#define DOSISH 1
#ifndef _WIN32_WCE
@@ -176,9 +180,6 @@ typedef int pid_t;
#endif /* __APPLE__ */
#endif /* NeXT */
-#ifdef __CYGWIN__
-#undef _WIN32
-#endif
#ifdef _WIN32
#include "win32/win32.h"
#endif