Back to index

openldap  2.4.31
alloca.h
Go to the documentation of this file.
00001 /* Generic alloca.h */
00002 /* $OpenLDAP$ */
00003 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00004  *
00005  * Copyright 1998-2012 The OpenLDAP Foundation.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted only as authorized by the OpenLDAP
00010  * Public License.
00011  *
00012  * A copy of this license is available in file LICENSE in the
00013  * top-level directory of the distribution or, alternatively, at
00014  * <http://www.OpenLDAP.org/license.html>.
00015  */
00016 
00017 #ifndef _AC_ALLOCA_H
00018 #define _AC_ALLOCA_H
00019 
00020 /*
00021  * use of alloca is disallowed as it is machine dependent
00022  */
00023 #error  "alloca() not supported, use malloc()"
00024 
00025 /* AIX requires this to be the first thing in the file.  */
00026 #ifdef __GNUC__
00027 # define alloca __builtin_alloca
00028 #else
00029 # ifdef HAVE_ALLOCA_H
00030 #  include <alloca.h>
00031 # else
00032 #  ifdef _AIX
00033 #pragma alloca
00034 #  else
00035 #   ifndef alloca /* predefined by HP cc +Olibcalls */
00036 extern char *(alloca)();
00037 #   endif
00038 #  endif
00039 # endif
00040 #endif
00041 
00042 
00043 #endif /* _AC_ALLOCA_H */