1 | /* |
1 | /* |
2 | nls.h - NLS system interface |
2 | nls.h - NLS system interface |
3 | Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 2000-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
29 | #ifndef GETOPT_NLS |
29 | #ifndef GETOPT_NLS |
30 | #define GETOPT_NLS |
30 | #define GETOPT_NLS |
31 | |
31 | |
32 | #define PACKAGE "getopt" |
32 | #define PACKAGE "getopt" |
33 | |
33 | |
34 | #ifndef WITHOUT_GETTEXT |
34 | #if WITHOUT_GETTEXT |
35 | #include <libintl.h> |
|
|
36 | #define _(Text) gettext (Text) |
|
|
37 | #else /* def WITHOUT_GETTEXT */ |
|
|
38 | #define _(Text) (Text) |
35 | #define _(Text) (Text) |
39 | #undef bindtextdomain |
36 | #undef bindtextdomain |
40 | #define bindtextdomain(Domain,Directory) /* empty */ |
37 | #define bindtextdomain(Domain,Directory) /* empty */ |
41 | #undef textdomain |
38 | #undef textdomain |
42 | #define textdomain(Domain) /* empty */ |
39 | #define textdomain(Domain) /* empty */ |
|
|
40 | #undef setlocale |
|
|
41 | #define setlocale(Category,Locale) /* empty */ |
|
|
42 | #else /* not WITHOUT_GETTEXT */ |
|
|
43 | #include <libintl.h> |
|
|
44 | #define _(Text) gettext (Text) |
43 | #endif /* ndef WITHOUT_GETTEXT */ |
45 | #endif /* WITHOUT_GETTEXT */ |
44 | |
46 | |
45 | #endif /* def GETOPT_NLS */ |
47 | #endif /* def GETOPT_NLS */ |
46 | |
48 | |
47 | #else /* not NOT_UTIL_LINUX */ |
49 | #else /* not NOT_UTIL_LINUX */ |
48 | #include "../lib/nls.h" |
50 | #include "../lib/nls.h" |