Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2013-03-29 09:56:19 +0400
committerZoltan Varga <vargaz@gmail.com>2013-03-29 09:56:19 +0400
commit1f739060e594cc427676bd36ebf8bb8701736023 (patch)
tree7e319d20f7e88fe7ea6e9e9344642bdf56cfe8e2
parent2bae3cf88d2bfbe51975debd0c94344c827eed9d (diff)
Hopefully fix the windows build.
-rw-r--r--mono/utils/atomic.h6
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)