* coop-pthreads.c: fix various preprocessor usages of new public
authorRob Browning <rlb@defaultvalue.org>
Thu, 27 Mar 2003 20:06:07 +0000 (20:06 +0000)
committerRob Browning <rlb@defaultvalue.org>
Thu, 27 Mar 2003 20:06:07 +0000 (20:06 +0000)
symbols to expect 0 or 1 values rather than 1 or undefined.
i.e. change #ifdef to #if, etc.

libguile/coop-pthreads.c

index c7210c9..b1ba060 100644 (file)
@@ -895,7 +895,7 @@ scm_threads_mark_stacks (void)
          /* Active thread */
          /* stack_len is long rather than sizet in order to guarantee
             that &stack_len is long aligned */
-#ifdef SCM_STACK_GROWS_UP
+#if SCM_STACK_GROWS_UP
          long stack_len = ((SCM_STACKITEM *) (&t) -
                            (SCM_STACKITEM *) thread->base);
          
@@ -942,7 +942,7 @@ scm_threads_mark_stacks (void)
       else
        {
          /* Suspended thread */
-#ifdef SCM_STACK_GROWS_UP
+#if SCM_STACK_GROWS_UP
          long stack_len = t->top - t->base;
          scm_mark_locations (t->base, stack_len);
 #else