Back to index

cell-binutils  2.17cvs20070401
asintl.h
Go to the documentation of this file.
00001 /* asintl.h - gas-specific header for gettext code.
00002    Copyright 1998, 1999, 2000, 2005 Free Software Foundation, Inc.
00003 
00004    Written by Tom Tromey <tromey@cygnus.com>
00005 
00006    This file is part of GAS, the GNU Assembler.
00007 
00008    GAS is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 2, or (at your option)
00011    any later version.
00012 
00013    GAS is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with GAS; see the file COPYING.  If not, write to the Free
00020    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00021    02110-1301, USA.  */
00022 
00023 #ifdef HAVE_LOCALE_H
00024 # ifndef ENABLE_NLS
00025    /* The Solaris version of locale.h always includes libintl.h.  If we have
00026       been configured with --disable-nls then ENABLE_NLS will not be defined
00027       and the dummy definitions of bindtextdomain (et al) below will conflict
00028       with the defintions in libintl.h.  So we define these values to prevent
00029       the bogus inclusion of libintl.h.  */
00030 #  define _LIBINTL_H
00031 #  define _LIBGETTEXT_H
00032 # endif
00033 # include <locale.h>
00034 #endif
00035 
00036 #ifdef ENABLE_NLS
00037 # include <libintl.h>
00038 # define _(String) gettext (String)
00039 # ifdef gettext_noop
00040 #  define N_(String) gettext_noop (String)
00041 # else
00042 #  define N_(String) (String)
00043 # endif
00044 #else
00045 # define gettext(Msgid) (Msgid)
00046 # define dgettext(Domainname, Msgid) (Msgid)
00047 # define dcgettext(Domainname, Msgid, Category) (Msgid)
00048 # define textdomain(Domainname) while (0) /* nothing */
00049 # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
00050 # define _(String) (String)
00051 # define N_(String) (String)
00052 #endif