1130803Smarcel/* GDB-friendly replacement for <locale.h>.
2130803Smarcel   Copyright 2002 Free Software Foundation, Inc.
3130803Smarcel
4130803Smarcel   This file is part of GDB.
5130803Smarcel
6130803Smarcel   This program is free software; you can redistribute it and/or modify
7130803Smarcel   it under the terms of the GNU General Public License as published by
8130803Smarcel   the Free Software Foundation; either version 2 of the License, or
9130803Smarcel   (at your option) any later version.
10130803Smarcel
11130803Smarcel   This program is distributed in the hope that it will be useful,
12130803Smarcel   but WITHOUT ANY WARRANTY; without even the implied warranty of
13130803Smarcel   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14130803Smarcel   GNU General Public License for more details.
15130803Smarcel
16130803Smarcel   You should have received a copy of the GNU General Public License
17130803Smarcel   along with this program; if not, write to the Free Software
18130803Smarcel   Foundation, Inc., 59 Temple Place - Suite 330,
19130803Smarcel   Boston, MA 02111-1307, USA.  */
20130803Smarcel
21130803Smarcel#ifndef GDB_LOCALE_H
22130803Smarcel#define GDB_LOCALE_H
23130803Smarcel
24130803Smarcel#ifdef HAVE_LOCALE_H
25130803Smarcel# include <locale.h>
26130803Smarcel#endif
27130803Smarcel
28130803Smarcel#ifdef ENABLE_NLS
29130803Smarcel# include <libintl.h>
30130803Smarcel# define _(String) gettext (String)
31130803Smarcel# ifdef gettext_noop
32130803Smarcel#  define N_(String) gettext_noop (String)
33130803Smarcel# else
34130803Smarcel#  define N_(String) (String)
35130803Smarcel# endif
36130803Smarcel#else
37130803Smarcel# define gettext(Msgid) (Msgid)
38130803Smarcel# define dgettext(Domainname, Msgid) (Msgid)
39130803Smarcel# define dcgettext(Domainname, Msgid, Category) (Msgid)
40130803Smarcel# define textdomain(Domainname) while (0) /* nothing */
41130803Smarcel# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
42130803Smarcel# define _(String) (String)
43130803Smarcel# define N_(String) (String)
44130803Smarcel#endif
45130803Smarcel
46130803Smarcel#endif /* GDB_LOCALE_H */
47