/[public]/getopt/tags/start/nls.h
ViewVC logotype

Annotation of /getopt/tags/start/nls.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 261 - (hide annotations)
Mon Nov 7 22:09:12 2005 UTC (18 years, 4 months ago) by (unknown author)
File MIME type: text/plain
File size: 1577 byte(s)
This commit was manufactured by cvs2svn to create tag 'start'.
1 frodo 259 /*
2     nls.h - NLS system interface
3     Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl>
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