[__hpux]: Include alloca.h (right for HPUX 10)

instead of declaring alloca (right for HPUX 9).
This commit is contained in:
Richard M. Stallman
1997-04-22 22:23:48 +00:00
parent 5e02f2ada1
commit 009b94d421
3 changed files with 18 additions and 0 deletions

View File

@@ -44,6 +44,11 @@
#include <malloc.h> #include <malloc.h>
#pragma alloca #pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */ #else /* not MSDOS, or __TURBOC__, or _AIX */
#ifdef __hpux /* This is right for HPUX 10. */
#include <alloca.h>
#endif
#if 0 /* This was right for HPUX 9.
Unfortunately there is no clean way to distinguish. */
#ifdef __hpux #ifdef __hpux
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@@ -53,6 +58,7 @@ void *alloca (unsigned int);
void *alloca (); void *alloca ();
#endif /* not __cplusplus */ #endif /* not __cplusplus */
#endif /* __hpux */ #endif /* __hpux */
#endif /* 0 */
#endif /* not _AIX */ #endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */ #endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */ #endif /* not sparc. */

View File

@@ -44,6 +44,11 @@
#include <malloc.h> #include <malloc.h>
#pragma alloca #pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */ #else /* not MSDOS, or __TURBOC__, or _AIX */
#ifdef __hpux /* This is right for HPUX 10. */
#include <alloca.h>
#endif
#if 0 /* This was right for HPUX 9.
Unfortunately there is no clean way to distinguish. */
#ifdef __hpux #ifdef __hpux
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@@ -53,6 +58,7 @@ void *alloca (unsigned int);
void *alloca (); void *alloca ();
#endif /* not __cplusplus */ #endif /* not __cplusplus */
#endif /* __hpux */ #endif /* __hpux */
#endif /* 0 */
#endif /* not _AIX */ #endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */ #endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */ #endif /* not sparc. */

View File

@@ -44,6 +44,11 @@
#include <malloc.h> #include <malloc.h>
#pragma alloca #pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */ #else /* not MSDOS, or __TURBOC__, or _AIX */
#ifdef __hpux /* This is right for HPUX 10. */
#include <alloca.h>
#endif
#if 0 /* This was right for HPUX 9.
Unfortunately there is no clean way to distinguish. */
#ifdef __hpux #ifdef __hpux
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@@ -53,6 +58,7 @@ void *alloca (unsigned int);
void *alloca (); void *alloca ();
#endif /* not __cplusplus */ #endif /* not __cplusplus */
#endif /* __hpux */ #endif /* __hpux */
#endif /* 0 */
#endif /* not _AIX */ #endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */ #endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */ #endif /* not sparc. */