]> git.sur5r.net Git - openldap/blob - include/ac/alloca.h
Import latest from devel
[openldap] / include / ac / alloca.h
1 /* Generic alloca.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms are permitted only
8  * as authorized by the OpenLDAP Public License.  A copy of this
9  * license is available at http://www.OpenLDAP.org/license.html or
10  * in file LICENSE in the top-level directory of the distribution.
11  */
12
13 #ifndef _AC_ALLOCA_H
14 #define _AC_ALLOCA_H
15
16 /*
17  * use of alloca is disallowed as it is machine dependent
18  */
19 #error  "alloca() not supported, use malloc()"
20
21 /* AIX requires this to be the first thing in the file.  */
22 #ifdef __GNUC__
23 # define alloca __builtin_alloca
24 #else
25 # if HAVE_ALLOCA_H
26 #  include <alloca.h>
27 # else
28 #  ifdef _AIX
29 #pragma alloca
30 #  else
31 #   ifndef alloca /* predefined by HP cc +Olibcalls */
32 extern char *(alloca)();
33 #   endif
34 #  endif
35 # endif
36 #endif
37
38
39 #endif /* _AC_ALLOCA_H */