1 |
/* |
2 |
nls.h - NLS system interface |
3 |
Copyright (c) 2000-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 |
|
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 |
7 |
the Free Software Foundation; either version 2 of the License, or |
8 |
(at your option) any later version. |
9 |
|
10 |
This program is distributed in the hope that it will be useful, |
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
GNU General Public License for more details. |
14 |
|
15 |
You should have received a copy of the GNU General Public License |
16 |
along with this program; if not, write to the Free Software |
17 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 |
*/ |
19 |
|
20 |
/* This file is a small hack to keep both the stand-alone package and |
21 |
* the util-linux versions happy. |
22 |
* In the stand-alone version, we define NOT_UTIL_LINUX and use our own |
23 |
* nls.h definitions; in the util-linux version, we use the global |
24 |
* util-linux nls definitions |
25 |
*/ |
26 |
|
27 |
#ifdef NOT_UTIL_LINUX |
28 |
|
29 |
#ifndef GETOPT_NLS |
30 |
#define GETOPT_NLS |
31 |
|
32 |
#define PACKAGE "getopt" |
33 |
|
34 |
#ifndef WITHOUT_GETTEXT |
35 |
#include <libintl.h> |
36 |
#define _(Text) gettext (Text) |
37 |
#else /* def WITHOUT_GETTEXT */ |
38 |
#define _(Text) (Text) |
39 |
#undef bindtextdomain |
40 |
#define bindtextdomain(Domain,Directory) /* empty */ |
41 |
#undef textdomain |
42 |
#define textdomain(Domain) /* empty */ |
43 |
#endif /* ndef WITHOUT_GETTEXT */ |
44 |
|
45 |
#endif /* def GETOPT_NLS */ |
46 |
|
47 |
#else /* not NOT_UTIL_LINUX */ |
48 |
#include "../lib/nls.h" |
49 |
#endif /* NOT_UTIL_LINUX */ |