]> sjero.net Git - wget/commitdiff
[svn] Amend alloca declaration.
authorhniksic <devnull@localhost>
Mon, 27 Jun 2005 18:48:41 +0000 (11:48 -0700)
committerhniksic <devnull@localhost>
Mon, 27 Jun 2005 18:48:41 +0000 (11:48 -0700)
src/ChangeLog
src/config-post.h

index 49539767b2644bafa6dbdd3a35a7e95aacbc2449..bb6b489a13cec7ff3012badcdbfa054d096c6b0d 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * config-post.h (alloca): Amend alloca declaration to take care of
+       all Win32 compilers, not just MSVC and MinGW.
+
 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * utils.c (get_grouping_data): Force separator to "." rather than
index 4c99fb8d13d2b1adf1dfa612bfe4e1a468b3e620..5c93dddae3fb07ab04651fc5b8f2713468d30cb3 100644 (file)
 #endif /* NAMESPACE_TWEAKS */
 
 
-/* Alloca-related defines, straight out of the Autoconf manual.  These
-   have to be after the above namespace tweaks, but before actual
-   declarations and system includes.  */
+/* Alloca declaration, based on recommendation in the Autoconf manual.
+   These have to be after the above namespace tweaks, but before any
+   non-preprocessor code.  */
 
 #if HAVE_ALLOCA_H
 # include <alloca.h>
+#elif defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
+# include <malloc.h>
 #elif defined __GNUC__
-# ifndef __MINGW32__
-#  define alloca __builtin_alloca
-# endif
+# define alloca __builtin_alloca
 #elif defined _AIX
 # define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
 #else
 # include <stddef.h>
 # ifdef  __cplusplus