--- getopt/trunk/nls.h 2005/11/07 22:09:10 259 +++ getopt/trunk/nls.h 2014/11/23 10:49:55 367 @@ -1,6 +1,6 @@ /* nls.h - NLS system interface - Copyright (c) 2000 Frodo Looijaard + Copyright (c) 2000-2014 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,16 +31,18 @@ #define PACKAGE "getopt" -#ifndef WITHOUT_GETTEXT -#include -#define _(Text) gettext (Text) -#else /* def WITHOUT_GETTEXT */ +#if WITHOUT_GETTEXT #define _(Text) (Text) #undef bindtextdomain #define bindtextdomain(Domain,Directory) /* empty */ #undef textdomain #define textdomain(Domain) /* empty */ -#endif /* ndef WITHOUT_GETTEXT */ +#undef setlocale +#define setlocale(Category,Locale) /* empty */ +#else /* not WITHOUT_GETTEXT */ +#include +#define _(Text) gettext (Text) +#endif /* WITHOUT_GETTEXT */ #endif /* def GETOPT_NLS */