GDB (API)
|
00001 /* GDB-friendly replacement for <locale.h>. 00002 Copyright (C) 2002-2013 Free Software Foundation, Inc. 00003 00004 This file is part of GDB. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 #ifndef GDB_LOCALE_H 00020 #define GDB_LOCALE_H 00021 00022 #ifdef HAVE_LOCALE_H 00023 # include <locale.h> 00024 #endif 00025 00026 #ifdef ENABLE_NLS 00027 # include <libintl.h> 00028 # define _(String) gettext (String) 00029 # ifdef gettext_noop 00030 # define N_(String) gettext_noop (String) 00031 # else 00032 # define N_(String) (String) 00033 # endif 00034 #else 00035 # define gettext(Msgid) (Msgid) 00036 # define dgettext(Domainname, Msgid) (Msgid) 00037 # define dcgettext(Domainname, Msgid, Category) (Msgid) 00038 # define textdomain(Domainname) while (0) /* nothing */ 00039 # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */ 00040 # define _(String) (String) 00041 # define N_(String) (String) 00042 #endif 00043 00044 #ifdef HAVE_LANGINFO_CODESET 00045 #include <langinfo.h> 00046 #endif 00047 00048 #endif /* GDB_LOCALE_H */