summaryrefslogtreecommitdiff
path: root/thread_win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-07 14:25:03 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-07 14:25:03 (GMT)
commitac6ed201bf2dd4792c0efae770c2ab12deac9d5c (patch)
treef36960a8447b34c9c8f33fa772b0cce1b60e5d33 /thread_win32.h
parent0eaefd202a7072aea6a17993c19c8704366ed9f7 (diff)
* thread_win32.h: undefine _WIN32 on cygwin. [ruby-dev:30303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.h')
-rw-r--r--thread_win32.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/thread_win32.h b/thread_win32.h
index c02e406..5a88fb4 100644
--- a/thread_win32.h
+++ b/thread_win32.h
@@ -10,11 +10,15 @@
**********************************************************************/
/* interface */
-#ifndef THREAD_WIN32_H_INCLUDED
-#define THREAD_WIN32_H_INCLUDED
+#ifndef RUBY_THREAD_WIN32_H
+#define RUBY_THREAD_WIN32_H
#include <windows.h>
+# ifdef __CYGWIN__
+# undef _WIN32
+# endif
+
WINBASEAPI BOOL WINAPI
TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
@@ -30,5 +34,5 @@ typedef struct native_thread_data_struct {
HANDLE interrupt_event;
} native_thread_data_t;
-#endif /* THREAD_WIN32_H_INCLUDED */
+#endif /* RUBY_THREAD_WIN32_H */