Fix boehm to correctly build on iOS/x86.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Nov 2012 15:29:48 +0000 (10:29 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Nov 2012 16:47:05 +0000 (11:47 -0500)
* darwin_stop_world.c: Use the target macros from Apple to figure
out what flavor of darwin we're compiling against.

libgc/darwin_stop_world.c

index a1051f5ac4e0e80b1af6af6198d78fa799907766..e867f10f13aee0cb9b9d3cedd88c2ed1834ba38b 100644 (file)
@@ -2,6 +2,10 @@
 
 # if defined(GC_DARWIN_THREADS)
 
+#if __APPLE__
+#include "TargetConditionals.h"
+#endif
+
 #include <AvailabilityMacros.h>
 #include "mono/utils/mono-compiler.h"
 
@@ -115,7 +119,7 @@ void GC_push_all_stacks() {
        if(r != KERN_SUCCESS) continue;
        
 #if defined(I386)
-#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+#if defined (TARGET_IPHONE_SIMULATOR) || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
 
        lo = state.__esp;