]> git.sur5r.net Git - openldap/blob - include/ac/stdlib.h
Define EXIT_SUCCESS and EXIT_FAILURE if necessary
[openldap] / include / ac / stdlib.h
1 /* Generic stdlib.h */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 #ifndef _AC_STDLIB_H
13 #define _AC_STDLIB_H
14
15 #       include <stdlib.h>
16
17         /* Not sure if !STDC_HEADERS is needed */
18 #       if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
19 #               include <malloc.h>
20 #       endif
21
22 #       ifndef EXIT_SUCCESS
23 #               define EXIT_SUCCESS 0
24 #               define EXIT_FAILURE 1
25 #       endif
26
27 #endif /* _AC_STDLIB_H */