We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LONG
Interlocked
1 parent 24f7829 commit e290957Copy full SHA for e290957
include/ruby/atomic.h
@@ -72,6 +72,8 @@ typedef unsigned int rb_atomic_t;
72
#elif defined(HAVE_GCC_SYNC_BUILTINS)
73
typedef unsigned int rb_atomic_t;
74
#elif defined(_WIN32)
75
+# include <winsock2.h> // to prevent macro redefinitions
76
+# include <windows.h> // for `LONG` and `Interlocked` functions
77
typedef LONG rb_atomic_t;
78
#elif defined(__sun) && defined(HAVE_ATOMIC_H)
79
0 commit comments