]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add definitions and includes for NLS.
authorJim Meyering <jim@meyering.net>
Tue, 12 Mar 1996 03:06:47 +0000 (03:06 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 12 Mar 1996 03:06:47 +0000 (03:06 +0000)
src/system.h

index aecd17fe1d5f499da3a480f32a98cc7e10d725bd..de8aedbc46608cb1e04cac9958c3c2b1c22e17be 100644 (file)
@@ -323,3 +323,21 @@ char *alloca ();
 #define __P(args) ()
 #endif  /* GCC.  */
 #endif  /* Not __P.  */
+
+/* Take care of NLS matters.  */
+
+#if HAVE_LOCALE_H
+# include <locale.h>
+#endif
+#if !HAVE_SETLOCALE
+# define setlocale(Category, Locale) /* empty */
+#endif
+
+#if ENABLE_NLS
+# include <libintl.h>
+# define _(Text) gettext (Text)
+#else
+# define bindtextdomain(Domain, Directory) /* empty */
+# define textdomain(Domain) /* empty */
+# define _(Text) Text
+#endif