*** empty log message ***
[gnulib.git] / lib / error.c
index 9c0700c..db97393 100644 (file)
 #endif
 
 #include <stdio.h>
-#if HAVE_LIBINTL_H
+
+#ifdef _LIBC
 # include <libintl.h>
+#else
+# include "gettext.h"
 #endif
+#define _(msgid) gettext (msgid)
+
 #ifdef _LIBC
 # include <wchar.h>
 # define mbsrtowcs __mbsrtowcs
@@ -54,10 +59,7 @@ void exit ();
 #endif
 
 #include "error.h"
-
-#ifndef _
-# define _(String) String
-#endif
+#include "unlocked-io.h"
 
 /* If NULL, error will flush stdout, then print on stderr the program
    name, a colon and a space.  Otherwise, error will call this