X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9208d17fa98a4702675f86423d811ad7bffd73ce..fcbfa6b01c0222b01254730c66d539ed2c841a4e:/lib/gettext.h diff --git a/lib/gettext.h b/lib/gettext.h index ea67f308..8b262f4c 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 a NOP. We don't include + as well because people using "gettext.h" will not include , + and also including would fail on SunOS 4, whereas + is OK. */ +#if defined(__sun) +# include +#endif + /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions.