From: Paul Eggert Date: Mon, 23 Jan 2012 08:10:55 +0000 (-0800) Subject: doc: work around mingw-w64 alloca problem with example X-Git-Tag: v2.68b~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=015ecc5018782c18fb20d0259c8a56cc258b9ab4;p=thirdparty%2Fautoconf.git doc: work around mingw-w64 alloca problem with example * doc/autoconf.texi (Particular Functions): In example code for alloca, do not re-#define alloca. This works around a mingw-w64 problem reported by Vincent Torri in . --- diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 247a46ca..82837a2b 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4863,15 +4863,15 @@ like the following, to declare it properly. #endif #ifdef HAVE_ALLOCA_H # include -#elif defined __GNUC__ -# define alloca __builtin_alloca -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include -# define alloca _alloca -#else -# ifndef HAVE_ALLOCA +#elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include +# define alloca _alloca +# elif !defined HAVE_ALLOCA # ifdef __cplusplus extern "C" # endif