]> git.sur5r.net Git - openldap/blob - include/ac/alloca.h
Added dnPretty2/dnNormalize2 using preallocated destination berval
[openldap] / include / ac / alloca.h
1 /* Generic alloca.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998-2001 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.  A copy of this license is available at
10  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
11  * top-level directory of the distribution.
12  */
13
14 #ifndef _AC_ALLOCA_H
15 #define _AC_ALLOCA_H
16
17 /*
18  * use of alloca is disallowed as it is machine dependent
19  */
20 #error  "alloca() not supported, use malloc()"
21
22 /* AIX requires this to be the first thing in the file.  */
23 #ifdef __GNUC__
24 # define alloca __builtin_alloca
25 #else
26 # if HAVE_ALLOCA_H
27 #  include <alloca.h>
28 # else
29 #  ifdef _AIX
30 #pragma alloca
31 #  else
32 #   ifndef alloca /* predefined by HP cc +Olibcalls */
33 extern char *(alloca)();
34 #   endif
35 #  endif
36 # endif
37 #endif
38
39
40 #endif /* _AC_ALLOCA_H */