mirror of
https://github.com/mirror/wget.git
synced 2025-02-15 06:10:23 +08:00
[svn] Update alloca declaration.
This commit is contained in:
parent
319f52d756
commit
979f8ed7f0
@ -1,3 +1,9 @@
|
|||||||
|
2005-06-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* config-post.h: Replace the alloca declaration with the one from
|
||||||
|
the latest Autoconf manual. This should remove a warning with GCC
|
||||||
|
on AIX.
|
||||||
|
|
||||||
2005-06-26 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-06-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* ftp.c (getftp): Always invoke SIZE, not only when continuing a
|
* ftp.c (getftp): Always invoke SIZE, not only when continuing a
|
||||||
|
@ -6,23 +6,7 @@
|
|||||||
|
|
||||||
This file is included at the bottom of config.h. */
|
This file is included at the bottom of config.h. */
|
||||||
|
|
||||||
/* Alloca-related defines, straight out of the Autoconf manual. */
|
/* Testing for __sun is not enough because it's also defined on SunOS. */
|
||||||
|
|
||||||
/* AIX requires this to be the first thing in the file. */
|
|
||||||
#ifndef __GNUC__
|
|
||||||
# if HAVE_ALLOCA_H
|
|
||||||
# include <alloca.h>
|
|
||||||
# else
|
|
||||||
# ifdef _AIX
|
|
||||||
#pragma alloca
|
|
||||||
# else
|
|
||||||
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
||||||
void *alloca ();
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __sun
|
#ifdef __sun
|
||||||
# ifdef __SVR4
|
# ifdef __SVR4
|
||||||
# define solaris
|
# define solaris
|
||||||
@ -64,3 +48,25 @@ void *alloca ();
|
|||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
|
|
||||||
#endif /* NAMESPACE_TWEAKS */
|
#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. */
|
||||||
|
|
||||||
|
#if 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
|
||||||
|
# include <stddef.h>
|
||||||
|
# ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
# endif
|
||||||
|
void *alloca (size_t);
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user