#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
#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