1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Amend alloca declaration.

This commit is contained in:
hniksic 2005-06-27 11:48:41 -07:00
parent 6b1effd729
commit 1e72fedf95
2 changed files with 11 additions and 9 deletions

View 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

View File

@ -50,21 +50,18 @@
#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