From: Jim Meyering Date: Sat, 13 Sep 2003 10:23:46 +0000 (+0000) Subject: Include "xalloc.h" first, to check interface. X-Git-Tag: v5.1.0~655 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63056397664c980f7035bd152008dadb05bcd392;p=thirdparty%2Fcoreutils.git Include "xalloc.h" first, to check interface. Include unconditionally. Include exit.h. (EXIT_FAILURE): Remove; now done by exit.h --- diff --git a/lib/xmalloc.c b/lib/xmalloc.c index ead50393d3..3adf5dda88 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -21,28 +21,17 @@ # include #endif -#include - -#if STDC_HEADERS -# include -#else -void *calloc (); -void *malloc (); -void *realloc (); -void free (); -#endif +#include "xalloc.h" + +#include #include "gettext.h" #define _(msgid) gettext (msgid) #define N_(msgid) msgid #include "error.h" +#include "exit.h" #include "exitfail.h" -#include "xalloc.h" - -#ifndef EXIT_FAILURE -# define EXIT_FAILURE 1 -#endif /* The following tests require AC_PREREQ(2.54). */