Include windows.h for LONG
and Interlocked
functions
This commit is contained in:
parent
24f7829abf
commit
e2909570bb
Notes:
git
2024-11-02 14:02:24 +00:00
@ -72,6 +72,8 @@ typedef unsigned int rb_atomic_t;
|
|||||||
#elif defined(HAVE_GCC_SYNC_BUILTINS)
|
#elif defined(HAVE_GCC_SYNC_BUILTINS)
|
||||||
typedef unsigned int rb_atomic_t;
|
typedef unsigned int rb_atomic_t;
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
# include <winsock2.h> // to prevent macro redefinitions
|
||||||
|
# include <windows.h> // for `LONG` and `Interlocked` functions
|
||||||
typedef LONG rb_atomic_t;
|
typedef LONG rb_atomic_t;
|
||||||
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
|
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
|
||||||
typedef unsigned int rb_atomic_t;
|
typedef unsigned int rb_atomic_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user