diff options
author | William Kent <wjk@users.noreply.github.com> | 2017-08-25 20:13:17 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-08-25 20:13:17 +0300 |
commit | b78e63acf1b6d4a7580419666715249820ba79bf (patch) | |
tree | 6a4835b8809d640aab404578d9cf67f584caad23 /src/Native/Runtime/unix | |
parent | a63d71732d2e6d32ab6e5cb8d721aed13e87d120 (diff) |
Fix compilation with Xcode 9 (#4383)
Diffstat (limited to 'src/Native/Runtime/unix')
-rw-r--r-- | src/Native/Runtime/unix/PalRedhawkUnix.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Native/Runtime/unix/PalRedhawkUnix.cpp b/src/Native/Runtime/unix/PalRedhawkUnix.cpp index a421c82b8..0357d6058 100644 --- a/src/Native/Runtime/unix/PalRedhawkUnix.cpp +++ b/src/Native/Runtime/unix/PalRedhawkUnix.cpp @@ -1106,6 +1106,11 @@ REDHAWK_PALEXPORT uint32_t REDHAWK_PALAPI PalCompatibleWaitAny(UInt32_BOOL alert return WaitForSingleObjectEx(pHandles[0], timeout, alertable); } +#ifndef __has_builtin +#define __has_builtin(x) 0 +#endif + +#if !__has_builtin(_mm_pause) extern "C" void _mm_pause() // Defined for implementing PalYieldProcessor in PalRedhawk.h { @@ -1113,6 +1118,7 @@ extern "C" void _mm_pause() __asm__ volatile ("pause"); #endif } +#endif extern "C" Int32 _stricmp(const char *string1, const char *string2) { |