X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5fcfb6e7fb1c1eda60e775e60cf22b650cb188fe..6a5705cfe86144c3c1e6b25b6ffcc38a4dd6ccb2:/src/system.h?ds=sidebyside diff --git a/src/system.h b/src/system.h index 8d3562c9..5d332099 100644 --- a/src/system.h +++ b/src/system.h @@ -23,3 +23,24 @@ #include /* memory.h and strings.h conflict on some systems. */ #endif /* not STDC_HEADERS and not HAVE_STRING_H */ + +#if HAVE_LOCALE_H +# include +#endif +#if !HAVE_SETLOCALE +# define setlocale(Category, Locale) +#endif + +#if ENABLE_NLS +# include +# define _(Text) gettext (Text) +#else +# define bindtextdomain(Domain, Directory) +# define textdomain(Domain) +# define _(Text) Text +#endif +#define N_(Text) Text + +/* In the meantime, waiting for Automake. */ +#define PACKAGE "bison" +#define LOCALEDIR "/usr/local/share/locale"