summaryrefslogtreecommitdiffstats
path: root/thread_win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-07 14:25:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-07 14:25:03 +0000
commite8c91e866c47ed79e72bef97998ba7b9363817aa (patch)
treef36960a8447b34c9c8f33fa772b0cce1b60e5d33 /thread_win32.h
parente11c188e3ccf4a9e69e1c8f737fbbe0261cd2ce2 (diff)
downloadruby-e8c91e866c47ed79e72bef97998ba7b9363817aa.tar.gz
ruby-e8c91e866c47ed79e72bef97998ba7b9363817aa.tar.xz
ruby-e8c91e866c47ed79e72bef97998ba7b9363817aa.zip
* thread_win32.h: undefine _WIN32 on cygwin. [ruby-dev:30303]
git-svn-id: http://svn.ruby-lang.org/repos/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 c02e40679..5a88fb40f 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 */