+2002-05-10 Bruno Haible <bruno@clisp.org>
+
+ * gettext.h: On Solaris, include <locale.h>.
+
2002-05-04 Bruno Haible <bruno@clisp.org>
* javacomp.c (compile_java_class): Ignore non-digits in the first
#else
+/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
+ chokes if dcgettext is defined as a macro. So include it now, to make
+ later inclusions of <locale.h> a NOP. We don't include <libintl.h>
+ as well because people using "gettext.h" will not include <libintl.h>,
+ and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
+ is OK. */
+#if defined(__sun)
+# include <locale.h>
+#endif
+
/* Disabled NLS.
The casts to 'const char *' serve the purpose of producing warnings
for invalid uses of the value returned from these functions.