summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/asmjit/src/asmjit/core/virtmem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/asmjit/src/asmjit/core/virtmem.cpp b/3rdparty/asmjit/src/asmjit/core/virtmem.cpp
index 97f7ceb5b2b..e373cf8d723 100644
--- a/3rdparty/asmjit/src/asmjit/core/virtmem.cpp
+++ b/3rdparty/asmjit/src/asmjit/core/virtmem.cpp
@@ -45,7 +45,7 @@
// Apple recently introduced MAP_JIT flag, which we want to use.
#if defined(__APPLE__)
#include <TargetConditionals.h>
- #if TARGET_OS_OSX
+ #if defined(TARGET_OS_OSX)
#include <sys/utsname.h>
#endif
// Older SDK doesn't define `MAP_JIT`.
@@ -316,7 +316,7 @@ static ASMJIT_INLINE bool VirtMem_isHardened() noexcept {
// MAP_JIT flag required to run unsigned JIT code is only supported by kernel
// version 10.14+ (Mojave) and IOS.
static ASMJIT_INLINE bool VirtMem_hasMapJitSupport() noexcept {
-#if TARGET_OS_OSX
+#if defined(TARGET_OS_OSX)
static volatile uint32_t globalVersion;
uint32_t ver = globalVersion;