From e0816d59386dc9de407613aaf74de96d9807f3a6 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Wed, 16 Jun 2004 01:04:09 +0000 Subject: [PATCH] =?UTF-8?q?update=20ifdefery=20for=20macosx.=20(scm=5Fget?= =?UTF-8?q?=5Fstack=5Fbase):=20separate=20result=20initialization=20from?= =?UTF-8?q?=20declaration=20to=20slience=20warnings=20with=20macosx=20and?= =?UTF-8?q?=20hp-ux=20using=20gcc=203.3.=20=20Thanks=20to=20Andreas=20V?= =?UTF-8?q?=C3=B6gele.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libguile/gc_os_dep.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libguile/gc_os_dep.c b/libguile/gc_os_dep.c index e30a22464..5ab709ee5 100644 --- a/libguile/gc_os_dep.c +++ b/libguile/gc_os_dep.c @@ -263,7 +263,8 @@ typedef int GC_bool; # define MACOS # define mach_type_known # endif -# if defined(macosx) +# if defined(macosx) || \ + (defined(__APPLE__) && defined(__MACH__) && defined(__ppc__)) # define MACOSX # define POWERPC # define mach_type_known @@ -1871,7 +1872,9 @@ void *scm_get_stack_base() void *scm_get_stack_base() { word dummy; - void *result = &dummy; /* initialize to silence compiler */ + void *result; + + result = &dummy; /* initialize to silence compiler */ # define STACKBOTTOM_ALIGNMENT_M1 ((word)STACK_GRAN - 1)