Permalink
Browse files

Fix boehm to correctly build on iOS/x86.

	* darwin_stop_world.c: Use the target macros from Apple to figure
	out what flavor of darwin we're compiling against.
  • Loading branch information...
1 parent ed6266f commit 88ba3d4073de6aa69c234de5c15947889a9b952e @kumpera kumpera committed Nov 13, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 libgc/darwin_stop_world.c
@@ -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;

0 comments on commit 88ba3d4

Please sign in to comment.