mirror of
https://github.com/mirror/wget.git
synced 2025-01-21 09:41:06 +08:00
[svn] Amend alloca declaration.
This commit is contained in:
parent
6b1effd729
commit
1e72fedf95
@ -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>
|
2005-06-27 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* utils.c (get_grouping_data): Force separator to "." rather than
|
* utils.c (get_grouping_data): Force separator to "." rather than
|
||||||
|
@ -50,21 +50,18 @@
|
|||||||
#endif /* NAMESPACE_TWEAKS */
|
#endif /* NAMESPACE_TWEAKS */
|
||||||
|
|
||||||
|
|
||||||
/* Alloca-related defines, straight out of the Autoconf manual. These
|
/* Alloca declaration, based on recommendation in the Autoconf manual.
|
||||||
have to be after the above namespace tweaks, but before actual
|
These have to be after the above namespace tweaks, but before any
|
||||||
declarations and system includes. */
|
non-preprocessor code. */
|
||||||
|
|
||||||
#if HAVE_ALLOCA_H
|
#if HAVE_ALLOCA_H
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
|
#elif defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
|
||||||
|
# include <malloc.h>
|
||||||
#elif defined __GNUC__
|
#elif defined __GNUC__
|
||||||
# ifndef __MINGW32__
|
# define alloca __builtin_alloca
|
||||||
# define alloca __builtin_alloca
|
|
||||||
# endif
|
|
||||||
#elif defined _AIX
|
#elif defined _AIX
|
||||||
# define alloca __alloca
|
# define alloca __alloca
|
||||||
#elif defined _MSC_VER
|
|
||||||
# include <malloc.h>
|
|
||||||
# define alloca _alloca
|
|
||||||
#else
|
#else
|
||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user