diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gettext.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gettext.h b/lib/gettext.h index babce049f..6d2d4f8ea 100644 --- a/lib/gettext.h +++ b/lib/gettext.h @@ -27,6 +27,16 @@ # 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. |