Hey, in case some mingw-w64 users are interested
regards Vincent Torri ---------- Forwarded message ---------- From: Paul Eggert <egg...@cs.ucla.edu> Date: Mon, Jan 23, 2012 at 9:13 AM Subject: Re: documentation of AC_FUNC_ALLOCA and mingw-w64 compilers To: Vincent Torri <vto...@univ-evry.fr> Cc: autoconf-patc...@gnu.org, autoc...@gnu.org OK, thanks for the info. I pushed this somewhat-different fix: 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 <http://lists.gnu.org/archive/html/autoconf/2012-01/msg00018.html>. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 247a46c..82837a2 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 <alloca.h> -#elif defined __GNUC__ -# define alloca __builtin_alloca -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include <malloc.h> -# 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 <malloc.h> +# define alloca _alloca +# elif !defined HAVE_ALLOCA # ifdef __cplusplus extern "C" # endif _______________________________________________ Autoconf mailing list autoc...@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public