зеркало из https://github.com/github/ruby.git
Include windows.h for `LONG` and `Interlocked` functions
This commit is contained in:
Родитель
24f7829abf
Коммит
e2909570bb
|
@ -72,6 +72,8 @@ typedef unsigned int rb_atomic_t;
|
|||
#elif defined(HAVE_GCC_SYNC_BUILTINS)
|
||||
typedef unsigned int rb_atomic_t;
|
||||
#elif defined(_WIN32)
|
||||
# include <winsock2.h> // to prevent macro redefinitions
|
||||
# include <windows.h> // for `LONG` and `Interlocked` functions
|
||||
typedef LONG rb_atomic_t;
|
||||
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
|
||||
typedef unsigned int rb_atomic_t;
|
||||
|
|
Загрузка…
Ссылка в новой задаче