From f2d78a995d188a34e59b1ab1af646d0f5efc40f0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 1 Jun 1996 22:06:24 +0000 Subject: [PATCH] [HAVE_LOCALE_H]: Include locale.h. [! HAVE_LOCALE_H] (setlocale): Define as no-op. [ENABLE_NLS]: Include libintl.h. [ENABLE_NLS] (gettext): Define. [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions. (N_, PACKAGE, LOCALEDIR): New macros. --- src/system.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/system.h b/src/system.h index 8d3562c9..5d332099 100644 --- a/src/system.h +++ b/src/system.h @@ -23,3 +23,24 @@ #include /* memory.h and strings.h conflict on some systems. */ #endif /* not STDC_HEADERS and not HAVE_STRING_H */ + +#if HAVE_LOCALE_H +# include +#endif +#if !HAVE_SETLOCALE +# define setlocale(Category, Locale) +#endif + +#if ENABLE_NLS +# include +# define _(Text) gettext (Text) +#else +# define bindtextdomain(Domain, Directory) +# define textdomain(Domain) +# define _(Text) Text +#endif +#define N_(Text) Text + +/* In the meantime, waiting for Automake. */ +#define PACKAGE "bison" +#define LOCALEDIR "/usr/local/share/locale" -- 2.45.2