]> git.saurik.com Git - bison.git/commitdiff
[HAVE_LOCALE_H]: Include locale.h.
authorRichard M. Stallman <rms@gnu.org>
Sat, 1 Jun 1996 22:06:24 +0000 (22:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 1 Jun 1996 22:06:24 +0000 (22:06 +0000)
[! 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

index 8d3562c9b07213d618817ce5082b86d2170b7737..5d332099c4b316b60f2f98fe2f049d1d43653dba 100644 (file)
 #include <strings.h>
 /* memory.h and strings.h conflict on some systems.  */
 #endif /* not STDC_HEADERS and not HAVE_STRING_H */
+
+#if HAVE_LOCALE_H
+# include <locale.h>
+#endif
+#if !HAVE_SETLOCALE
+# define setlocale(Category, Locale)
+#endif
+
+#if ENABLE_NLS
+# include <libintl.h>
+# 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"