/[public]/getopt/trunk/nls.h
ViewVC logotype

Contents of /getopt/trunk/nls.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 263 - (show annotations)
Mon Nov 7 22:19:13 2005 UTC (13 years, 10 months ago) by frodo
File MIME type: text/plain
File size: 1595 byte(s)
(Frodo) Preparation for 1.1.4, changed copyrights, email and website

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 */

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26