]>
Commit | Line | Data |
---|---|---|
0fbb3da7 | 1 | /* GDB-friendly replacement for <locale.h>. |
7b6bb8da JB |
2 | Copyright (C) 2002, 2007, 2008, 2009, 2010, 2011 |
3 | Free Software Foundation, Inc. | |
0fbb3da7 TT |
4 | |
5 | This file is part of GDB. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
a9762ec7 | 9 | the Free Software Foundation; either version 3 of the License, or |
0fbb3da7 TT |
10 | (at your option) any later version. |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
a9762ec7 | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
0fbb3da7 TT |
19 | |
20 | #ifndef GDB_LOCALE_H | |
21 | #define GDB_LOCALE_H | |
22 | ||
23 | #ifdef HAVE_LOCALE_H | |
24 | # include <locale.h> | |
25 | #endif | |
26 | ||
27 | #ifdef ENABLE_NLS | |
28 | # include <libintl.h> | |
29 | # define _(String) gettext (String) | |
30 | # ifdef gettext_noop | |
31 | # define N_(String) gettext_noop (String) | |
32 | # else | |
33 | # define N_(String) (String) | |
34 | # endif | |
35 | #else | |
36 | # define gettext(Msgid) (Msgid) | |
37 | # define dgettext(Domainname, Msgid) (Msgid) | |
38 | # define dcgettext(Domainname, Msgid, Category) (Msgid) | |
39 | # define textdomain(Domainname) while (0) /* nothing */ | |
40 | # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */ | |
41 | # define _(String) (String) | |
42 | # define N_(String) (String) | |
43 | #endif | |
44 | ||
6c7a06a3 TT |
45 | #ifdef HAVE_LANGINFO_CODESET |
46 | #include <langinfo.h> | |
47 | #endif | |
48 | ||
0fbb3da7 | 49 | #endif /* GDB_LOCALE_H */ |