1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-02-07 14:25:03 +00:00
parent 0eaefd202a
commit ac6ed201bf
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Wed Feb 7 23:24:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread_win32.h: undefine _WIN32 on cygwin. [ruby-dev:30303]
Wed Feb 7 22:41:34 2007 Koichi Sasada <ko1@atdot.net>
* eval_intern.h: remove UNSUPPORTED() macro.

View file

@ -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 */