From 65e5c7bef084b605faaac9d41f5a2862a604ae8c Mon Sep 17 00:00:00 2001 From: jgarcia Date: Sat, 1 Dec 2007 15:35:56 +0000 Subject: [PATCH] __DARWIN_UNIX03 = 0 in Tiger, > 0 in Leopard. Apparently it is always defined. --- src/gc/darwin_stop_world.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gc/darwin_stop_world.c b/src/gc/darwin_stop_world.c index 6b40b3a5a..77a790731 100644 --- a/src/gc/darwin_stop_world.c +++ b/src/gc/darwin_stop_world.c @@ -102,7 +102,7 @@ void GC_push_all_stacks() { if(r != KERN_SUCCESS) ABORT("thread_get_state failed"); #if defined(I386) -# ifdef __DARWIN_UNIX03 +# if __DARWIN_UNIX03 /* In Leopard, the registers get a prefix */ lo = state.__esp; @@ -123,7 +123,7 @@ void GC_push_all_stacks() { GC_push_one(state.edi); GC_push_one(state.esi); GC_push_one(state.ebp); -#endif +# endif #elif defined(POWERPC) lo = (void*)(state.r1 - PPC_RED_ZONE_SIZE);