Back to index

openldap  2.4.31
stdlib.h
Go to the documentation of this file.
00001 /* Generic stdlib.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_STDLIB_H
00018 #define _AC_STDLIB_H
00019 
00020 #if defined( HAVE_CSRIMALLOC )
00021 #include <stdio.h>
00022 #define MALLOC_TRACE
00023 #include <libmalloc.h>
00024 #endif
00025 
00026 #include <stdlib.h>
00027 
00028 /* Ignore malloc.h if we have STDC_HEADERS */
00029 #if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
00030 #      include <malloc.h>
00031 #endif
00032 
00033 #ifndef EXIT_SUCCESS
00034 #      define EXIT_SUCCESS 0
00035 #      define EXIT_FAILURE 1
00036 #endif
00037 
00038 #ifdef HAVE_LIMITS_H
00039 #include <limits.h>
00040 #endif
00041 
00042 #if defined(LINE_MAX) 
00043 #      define AC_LINE_MAX LINE_MAX
00044 #else
00045 #      define AC_LINE_MAX 2048 /* POSIX MIN */
00046 #endif
00047 
00048 #endif /* _AC_STDLIB_H */