summaryrefslogtreecommitdiffhomepage
path: root/compat/macros1.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-25 09:53:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-25 09:53:52 +0100
commitbab093ebbe392927a92ef201fe60344d5c1191dd (patch)
tree7f062abab2f17f614a3a81e2836a15e90cef3496 /compat/macros1.h
parent323dd162f5326b998e1c92ab4cfec8a63574023f (diff)
compat/shm, proto/wine: remove duplication
The X-Plane plugin is next and should build on win32 then.
Diffstat (limited to 'compat/macros1.h')
-rw-r--r--compat/macros1.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/macros1.h b/compat/macros1.h
index fd2d4585..56f8e978 100644
--- a/compat/macros1.h
+++ b/compat/macros1.h
@@ -39,3 +39,12 @@
# define PP_EXPAND__2(x) PP_EXPAND__3(x) x
# define PP_EXPAND__3(x) x
#endif
+
+#ifdef _MSC_VER
+//# include <windows.h>
+//# define FULL_BARRIER MemoryBarrier()
+# define COMPILER_BARRIER() _ReadWriteBarrier()
+#else
+//# define FULL_BARRIER() __sync_synchronize()
+# define COMPILER_BARRIER() asm volatile("" ::: "memory")
+#endif