]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Upgrade to gettext-0.11.3.
authorJim Meyering <jim@meyering.net>
Sat, 20 Jul 2002 06:31:12 +0000 (06:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Jul 2002 06:31:12 +0000 (06:31 +0000)
lib/gettext.h

index babce049f1dd12217ca565f54c10a4f719399662..6d2d4f8ea1540f83f1fd101097d02a5460b46be8 100644 (file)
 
 # 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.