diff options
author | Zoltan Varga <vargaz@gmail.com> | 2013-03-29 09:56:19 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2013-03-29 09:56:19 +0400 |
commit | 1f739060e594cc427676bd36ebf8bb8701736023 (patch) | |
tree | 7e319d20f7e88fe7ea6e9e9344642bdf56cfe8e2 | |
parent | 2bae3cf88d2bfbe51975debd0c94344c827eed9d (diff) |
Hopefully fix the windows build.
-rw-r--r-- | mono/utils/atomic.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mono/utils/atomic.h b/mono/utils/atomic.h index 850d41312da..91571f51b31 100644 --- a/mono/utils/atomic.h +++ b/mono/utils/atomic.h @@ -23,7 +23,11 @@ #include <glib.h> -#if defined(__NetBSD__) && defined(HAVE_ATOMIC_OPS) +#if defined(__WIN32__) || defined(_WIN32) + +#include <windows.h> + +#elif defined(__NetBSD__) && defined(HAVE_ATOMIC_OPS) static inline gint32 InterlockedCompareExchange(volatile gint32 *dest, gint32 exch, gint32 comp) |