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