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

Contents of /getopt/trunk/nls.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 367 - (show annotations)
Sun Nov 23 10:49:55 2014 UTC (4 years, 9 months ago) by frodo
File MIME type: text/plain
File size: 1650 byte(s)
(Frodo) Bump copyright year

1 /*
2 nls.h - NLS system interface
3 Copyright (c) 2000-2014 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 #if WITHOUT_GETTEXT
35 #define _(Text) (Text)
36 #undef bindtextdomain
37 #define bindtextdomain(Domain,Directory) /* empty */
38 #undef textdomain
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)
45 #endif /* WITHOUT_GETTEXT */
46
47 #endif /* def GETOPT_NLS */
48
49 #else /* not NOT_UTIL_LINUX */
50 #include "../lib/nls.h"
51 #endif /* NOT_UTIL_LINUX */

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