2011-04-21 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / gdb / gdb_locale.h
... / ...
CommitLineData
1/* GDB-friendly replacement for <locale.h>.
2 Copyright (C) 2002, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
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
9 the Free Software Foundation; either version 3 of the License, or
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
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
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
45#ifdef HAVE_LANGINFO_CODESET
46#include <langinfo.h>
47#endif
48
49#endif /* GDB_LOCALE_H */
This page took 0.022121 seconds and 4 git commands to generate.