+2009-07-20 Geoff Norton <gnorton@novell.com>
+
+ * darwin_stop_world.c: Fix the x86 version guards to use Apple's
+ properly defined macros.
+
2009-07-02 jonas echterhoff <jonas@unity3d.com>
* darwin_stop_world.c: make debugger code compile on
# if defined(GC_DARWIN_THREADS)
+#include <AvailabilityMacros.h>
#include "mono/utils/mono-compiler.h"
#ifdef MONO_DEBUGGER_SUPPORTED
if(r != KERN_SUCCESS) ABORT("thread_get_state failed");
#if defined(I386)
-#if defined(_STRUCT_X86_EXCEPTION_STATE32)
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+
lo = state.__esp;
GC_push_one(state.__eax);
(natural_t *)&info, &outCount);
if(r != KERN_SUCCESS) continue;
-#if defined(_STRUCT_X86_EXCEPTION_STATE32)
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
lo = (void*)info.__esp;
hi = (ptr_t)FindTopOfStack(info.__esp);