]> sjero.net Git - wget/commitdiff
[svn] Don't #define alloca under MinGW32.
authorhniksic <devnull@localhost>
Mon, 27 Jun 2005 11:06:12 +0000 (04:06 -0700)
committerhniksic <devnull@localhost>
Mon, 27 Jun 2005 11:06:12 +0000 (04:06 -0700)
src/ChangeLog
src/config-post.h

index ab85f4c300d70fcffad6a0149cbb9c7ada060666..bc1c04ee010e89584332d4c40e7a6a5cf6b06511 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * config-post.h (alloca): Don't #define alloca under MinGW32,
+       which defines it in malloc.h, included from mswindows.h.
+
 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * utils.c (get_grouping_data): Force the use of separators in C
index ed69cf81349f5585cc0843bccb05045ced1cd38a..4c99fb8d13d2b1adf1dfa612bfe4e1a468b3e620 100644 (file)
@@ -57,7 +57,9 @@
 #if HAVE_ALLOCA_H
 # include <alloca.h>
 #elif defined __GNUC__
-# define alloca __builtin_alloca
+# ifndef __MINGW32__
+#  define alloca __builtin_alloca
+# endif
 #elif defined _AIX
 # define alloca __alloca
 #elif defined _MSC_VER