stdlib.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Generic stdlib.h */
  2. /* $OpenLDAP$ */
  3. /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  4. *
  5. * Copyright 1998-2022 The OpenLDAP Foundation.
  6. * All rights reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted only as authorized by the OpenLDAP
  10. * Public License.
  11. *
  12. * A copy of this license is available in file LICENSE in the
  13. * top-level directory of the distribution or, alternatively, at
  14. * <http://www.OpenLDAP.org/license.html>.
  15. */
  16. #ifndef _AC_STDLIB_H
  17. #define _AC_STDLIB_H
  18. #if defined( HAVE_CSRIMALLOC )
  19. #include <stdio.h>
  20. #define MALLOC_TRACE
  21. #error #include <libmalloc.h>
  22. #endif
  23. #include <stdlib.h>
  24. /* Ignore malloc.h if we have STDC_HEADERS */
  25. #if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
  26. # include <malloc.h>
  27. #endif
  28. #ifndef EXIT_SUCCESS
  29. # define EXIT_SUCCESS 0
  30. # define EXIT_FAILURE 1
  31. #endif
  32. #ifdef HAVE_LIMITS_H
  33. #include <limits.h>
  34. #endif
  35. #if defined(LINE_MAX)
  36. # define AC_LINE_MAX LINE_MAX
  37. #else
  38. # define AC_LINE_MAX 2048 /* POSIX MIN */
  39. #endif
  40. #endif /* _AC_STDLIB_H */