]> git.sur5r.net Git - openldap/blobdiff - include/ac/stdlib.h
Added dnPretty2/dnNormalize2 using preallocated destination berval
[openldap] / include / ac / stdlib.h
index fad37d557b65b59fda3c42f35cda5c4a6f0cd922..c1b24da86fddc7ce4f817c58db2b64a71380375c 100644 (file)
@@ -1,26 +1,35 @@
 /* Generic stdlib.h */
+/* $OpenLDAP$ */
 /*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted only
- * as authorized by the OpenLDAP Public License.  A copy of this
- * license is available at http://www.OpenLDAP.org/license.html or
- * in file LICENSE in the top-level directory of the distribution.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.  A copy of this license is available at
+ * http://www.OpenLDAP.org/license.html or in file LICENSE in the
+ * top-level directory of the distribution.
  */
 
 #ifndef _AC_STDLIB_H
 #define _AC_STDLIB_H
 
-#ifdef STDC_HEADERS
-#      include <stdlib.h>
+#if defined( HAVE_CSRIMALLOC )
+#include <stdio.h>
+#define MALLOC_TRACE
+#include <libmalloc.h>
+#endif
 
-#else
+#include <stdlib.h>
 
-#      ifdef HAVE_MALLOC_H
-#              include <malloc.h>
-#      endif
+/* Ignore malloc.h if we have STDC_HEADERS */
+#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
+#      include <malloc.h>
+#endif
 
+#ifndef EXIT_SUCCESS
+#      define EXIT_SUCCESS 0
+#      define EXIT_FAILURE 1
 #endif
 
 #endif /* _AC_STDLIB_H */