From 525e6f78a6330787af679093f6ea2e515af389e2 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 29 Jan 2017 17:38:28 +0100 Subject: [PATCH 3/5] Simplify C_STACK_GROWS_DOWNWARD detection Instead of first defining it to -1 if it's undefined and then checking whether it has been defined as -1, we simply check if it's undefined. There seems to be no good reason for the current behaviour. --- chicken.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chicken.h b/chicken.h index f64c43e..fa3c94b 100644 --- a/chicken.h +++ b/chicken.h @@ -293,12 +293,7 @@ void *alloca (); /* Stack growth direction; used to compute stack addresses */ - #ifndef C_STACK_GROWS_DOWNWARD -# define C_STACK_GROWS_DOWNWARD -1 -#endif - -#if C_STACK_GROWS_DOWNWARD == -1 # ifdef __hppa__ # undef C_STACK_GROWS_DOWNWARD # define C_STACK_GROWS_DOWNWARD 0 -- 2.1.4