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