Commit 3653bb99 by Gabriel Dos Reis Committed by Gabriel Dos Reis

* std/std_valarray.h: Don't #include unconditionally <alloca.h>

From-SVN: r27364
parent 11fda01f
1999-06-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr> 1999-06-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/std_valarray.h: Don't #include unconditionally <alloca.h>
1999-06-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/std_valarray.h: New file. * std/std_valarray.h: New file.
* std/slice.h: New file. * std/slice.h: New file.
......
...@@ -40,7 +40,31 @@ ...@@ -40,7 +40,31 @@
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <alloca.h> // XXX non-standard. #ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C. */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else /* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#endif /* __hpux */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */
#endif /* not GNU C. */
#endif /* alloca not defined. */
extern "C" {
void* alloca(size_t);
}
extern "C++" { extern "C++" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment