Skip to content
Snippets Groups Projects
Commit 5a817025 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add <ac/stdlib.h> to genericize memory allocators.

Remove memory.h/malloc.h inclusion from <ac/string.h>.
Need to s/<stdlib.h>/<ac/stdlib.h> everywhere.
parent 3046c044
No related branches found
No related tags found
No related merge requests found
/* Generic stdlib.h */
/*
* Copyright 1998,1999 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.
*/
#ifndef _AC_STDLIB_H
#define _AC_STDLIB_H
#ifdef STDC_HEADERS
# include <stdlib.h>
#else
# ifdef HAVE_MEMORY_H
# include <memory.h>
# endif
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# endif
#endif
#endif /* _AC_STDLIB_H */
......@@ -24,11 +24,6 @@
# ifdef HAVE_MEMORY_H
# include <memory.h>
# endif
/* we should actually create <ac/stdlib.h> */
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# endif
# ifndef HAVE_STRRCHR
......@@ -77,5 +72,4 @@ extern int (strncasecmp)();
# endif
#endif
#endif /* _AC_STRING_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment