From 63056397664c980f7035bd152008dadb05bcd392 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 13 Sep 2003 10:23:46 +0000 Subject: Include "xalloc.h" first, to check interface. Include unconditionally. Include exit.h. (EXIT_FAILURE): Remove; now done by exit.h --- lib/xmalloc.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'lib/xmalloc.c') diff --git a/lib/xmalloc.c b/lib/xmalloc.c index ead50393d..3adf5dda8 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). */ -- cgit v1.2.3-54-g00ecf