[runtime] Add some low level locks to image sets to reduce contention and the usage...
[mono.git] / mono / utils / mono-sigcontext.h
index d5abd52ae4019f065f6eae5987032519bf7d7f1e..03247cf02a68d33381c602bbfb89d4a9527e4f2d 100644 (file)
@@ -21,7 +21,6 @@
 #endif
 #if defined(__APPLE__)
 #include <AvailabilityMacros.h>
-#include <TargetConditionals.h>
 #endif
 
 #if defined(__FreeBSD__) || defined(__DragonFly__)
@@ -35,7 +34,7 @@
        #define UCONTEXT_REG_EDI(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_edi)
        #define UCONTEXT_REG_EIP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_eip)
 #elif defined(__APPLE__)
-#  if TARGET_IPHONE_SIMULATOR == 1 || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
+#  if defined (TARGET_IOS) || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
        #define UCONTEXT_REG_EAX(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__eax)
        #define UCONTEXT_REG_EBX(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__ebx)
        #define UCONTEXT_REG_ECX(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__ecx)