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