From 8f5674daf918708eafe7297ff164deba6a43930b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 28 Nov 2002 09:19:26 +0000 Subject: Merge some more, in preparation for merge back into libc. (_): Define only if not already defined. Move definition to follow all #include directives. Include unlocked-io.h only if !_LIBC. --- lib/error.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/error.c') diff --git a/lib/error.c b/lib/error.c index 3161538e1..6af7cb83a 100644 --- a/lib/error.c +++ b/lib/error.c @@ -31,7 +31,6 @@ #else # include "gettext.h" #endif -#define _(msgid) gettext (msgid) #ifdef _LIBC # include @@ -59,7 +58,14 @@ void exit (); #endif #include "error.h" -#include "unlocked-io.h" + +#if !_LIBC +# include "unlocked-io.h" +#endif + +#ifndef _ +# define _(String) String +#endif /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this -- cgit v1.2.3-54-g00ecf