]> git.sur5r.net Git - openldap/blob - include/ac/alloca.h
s/Id/OpenLDAP/ in RCSids
[openldap] / include / ac / alloca.h
1 /* Generic alloca.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998,1999 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 #error  "alloca() not supported, use malloc()"
17
18 /* AIX requires this to be the first thing in the file.  */
19 #ifdef __GNUC__
20 # define alloca __builtin_alloca
21 #else
22 # if HAVE_ALLOCA_H
23 #  include <alloca.h>
24 # else
25 #  ifdef _AIX
26 #pragma alloca
27 #  else
28 #   ifndef alloca /* predefined by HP cc +Olibcalls */
29 extern char *(alloca)();
30 #   endif
31 #  endif
32 # endif
33 #endif
34
35
36 #endif /* _AC_ALLOCA_H */