1999-06-03 07:39:55 +08:00
|
|
|
/* Generic stdlib.h */
|
1999-08-30 16:08:00 +08:00
|
|
|
/* $OpenLDAP$ */
|
2003-11-26 12:16:36 +08:00
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
*
|
2007-01-03 04:00:42 +08:00
|
|
|
* Copyright 1998-2007 The OpenLDAP Foundation.
|
1999-06-03 07:39:55 +08:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
2001-05-29 11:35:56 +08:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
2003-11-26 07:17:08 +08:00
|
|
|
* Public License.
|
|
|
|
*
|
|
|
|
* A copy of this license is available in file LICENSE in the
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
1999-06-03 07:39:55 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _AC_STDLIB_H
|
|
|
|
#define _AC_STDLIB_H
|
|
|
|
|
1999-08-20 01:06:28 +08:00
|
|
|
#if defined( HAVE_CSRIMALLOC )
|
|
|
|
#include <stdio.h>
|
|
|
|
#define MALLOC_TRACE
|
|
|
|
#include <libmalloc.h>
|
|
|
|
#endif
|
|
|
|
|
1999-08-04 02:14:24 +08:00
|
|
|
#include <stdlib.h>
|
1999-06-03 07:39:55 +08:00
|
|
|
|
1999-08-04 02:14:24 +08:00
|
|
|
/* Ignore malloc.h if we have STDC_HEADERS */
|
|
|
|
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
|
|
|
|
# include <malloc.h>
|
|
|
|
#endif
|
1999-06-03 07:39:55 +08:00
|
|
|
|
1999-08-04 02:14:24 +08:00
|
|
|
#ifndef EXIT_SUCCESS
|
|
|
|
# define EXIT_SUCCESS 0
|
|
|
|
# define EXIT_FAILURE 1
|
|
|
|
#endif
|
1999-08-02 05:18:38 +08:00
|
|
|
|
2006-08-26 04:05:14 +08:00
|
|
|
#ifdef HAVE_LIMITS_H
|
|
|
|
#include <limits.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(LINE_MAX)
|
|
|
|
# define AC_LINE_MAX LINE_MAX
|
|
|
|
#else
|
|
|
|
# define AC_LINE_MAX 2048 /* POSIX MIN */
|
|
|
|
#endif
|
|
|
|
|
1999-06-03 07:39:55 +08:00
|
|
|
#endif /* _AC_STDLIB_H */
|