mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
Fix the stack direction check again
Turns out I got it wrong.
This commit is contained in:
parent
341c0b1988
commit
698393f15d
@ -597,7 +597,7 @@ AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[
|
||||
AC_TRY_RUN([
|
||||
volatile int *a = 0, *b = 0;
|
||||
void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); }
|
||||
int main () { volatile int y = 7; a = &y; f (100); return b > a; }
|
||||
int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; }
|
||||
],
|
||||
glib_cv_stack_grows=yes
|
||||
,
|
||||
|
Loading…
Reference in New Issue
Block a user