summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-23 09:13:40 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-23 09:13:40 (GMT)
commit39f59b089dde8c4badaa510dd47d6d93d5eaed3d (patch)
tree4b5aaeb5f2b479a161873c060cbfd16a2d591fb3 /configure.in
parent19cf4ee69d414b3bf849cb2a4f00bfed70f1c76b (diff)
downloadcpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.zip
cpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.tar.gz
cpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.tar.bz2
Remove MALLOC_ZERO_RETURNS_NULL.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in29
1 files changed, 0 insertions, 29 deletions
diff --git a/configure.in b/configure.in
index ed744ea..7c86412 100644
--- a/configure.in
+++ b/configure.in
@@ -2243,35 +2243,6 @@ LIBS="$LIBS $LIBM"
AC_REPLACE_FUNCS(hypot)
LIBS=$LIBS_SAVE
-# check whether malloc(0) returns NULL or not
-AC_MSG_CHECKING(what malloc(0) returns)
-AC_CACHE_VAL(ac_cv_malloc_zero,
-[AC_TRY_RUN([#include <stdio.h>
-#ifdef HAVE_STDLIB
-#include <stdlib.h>
-#else
-char *malloc(), *realloc();
-int *free();
-#endif
-main() {
- char *p;
- p = malloc(0);
- if (p == NULL) exit(1);
- p = realloc(p, 0);
- if (p == NULL) exit(1);
- free(p);
- exit(0);
-}],
-ac_cv_malloc_zero=nonnull,
-ac_cv_malloc_zero=null,
-ac_cv_malloc_zero=nonnull)]) # XXX arm cross-compile?
-AC_MSG_RESULT($ac_cv_malloc_zero)
-if test "$ac_cv_malloc_zero" = null
-then
- AC_DEFINE(MALLOC_ZERO_RETURNS_NULL, 1,
- [Define if malloc(0) returns a NULL pointer.])
-fi
-
# check for wchar.h
AC_CHECK_HEADER(wchar.h, [
AC_DEFINE(HAVE_WCHAR_H, 1,