From a9ae74d25bec8208d56fc6619c610f0d6849412c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 16 Apr 2005 04:06:14 +0000 Subject: bernhardf reports with Bug 210: For certain non-gcc compilers, alloca_h is defined (included) but there, no alloca() is declared. Fallback to malloc if _ALLOCA_H is defined but still, there is no alloca() in the included _ALLOCA_H. --- scripts/config/zconf.tab.c_shipped | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/config/zconf.tab.c_shipped') diff --git a/scripts/config/zconf.tab.c_shipped b/scripts/config/zconf.tab.c_shipped index a5f69a026..bc2225fb4 100644 --- a/scripts/config/zconf.tab.c_shipped +++ b/scripts/config/zconf.tab.c_shipped @@ -227,7 +227,7 @@ typedef union YYSTYPE { # define YYSTACK_ALLOC alloca # else # ifndef YYSTACK_USE_ALLOCA -# if defined (alloca) || defined (_ALLOCA_H) +# if defined (alloca) || (defined (_ALLOCA_H) && defined (__GNUC__)) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ -- cgit v1.2.3