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.
1 parent a2fb086 commit eeac956Copy full SHA for eeac956
port/atomic_pointer.h
@@ -26,8 +26,10 @@
26
#include <windows.h>
27
#endif
28
#ifdef OS_MACOSX
29
+#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200
30
#include <libkern/OSAtomic.h>
31
32
+#endif
33
34
#if defined(_M_X64) || defined(__x86_64__)
35
#define ARCH_CPU_X86_FAMILY 1
@@ -55,10 +57,12 @@ namespace port {
55
57
56
58
// Mac OS
59
#elif defined(OS_MACOSX)
60
61
inline void MemoryBarrier() {
62
OSMemoryBarrier();
63
}
64
#define LEVELDB_HAVE_MEMORY_BARRIER
65
66
67
// Gcc on x86
68
#elif defined(ARCH_CPU_X86_FAMILY) && defined(__GNUC__)
0 commit comments