asintl.h revision 218822
160484Sobrien/* asintl.h - gas-specific header for gettext code. 2218822Sdim Copyright 1998, 1999, 2000, 2005 Free Software Foundation, Inc. 360484Sobrien 460484Sobrien Written by Tom Tromey <tromey@cygnus.com> 560484Sobrien 660484Sobrien This file is part of GAS, the GNU Assembler. 760484Sobrien 860484Sobrien GAS is free software; you can redistribute it and/or modify 960484Sobrien it under the terms of the GNU General Public License as published by 1060484Sobrien the Free Software Foundation; either version 2, or (at your option) 1160484Sobrien any later version. 1260484Sobrien 1360484Sobrien GAS is distributed in the hope that it will be useful, 1460484Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1560484Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1660484Sobrien GNU General Public License for more details. 1760484Sobrien 1860484Sobrien You should have received a copy of the GNU General Public License 1960484Sobrien along with GAS; see the file COPYING. If not, write to the Free 20218822Sdim Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 21218822Sdim 02110-1301, USA. */ 2260484Sobrien 2360484Sobrien#ifdef HAVE_LOCALE_H 24218822Sdim# ifndef ENABLE_NLS 25218822Sdim /* The Solaris version of locale.h always includes libintl.h. If we have 26218822Sdim been configured with --disable-nls then ENABLE_NLS will not be defined 27218822Sdim and the dummy definitions of bindtextdomain (et al) below will conflict 28218822Sdim with the defintions in libintl.h. So we define these values to prevent 29218822Sdim the bogus inclusion of libintl.h. */ 30218822Sdim# define _LIBINTL_H 31218822Sdim# define _LIBGETTEXT_H 32218822Sdim# endif 3360484Sobrien# include <locale.h> 3460484Sobrien#endif 3560484Sobrien 3660484Sobrien#ifdef ENABLE_NLS 3760484Sobrien# include <libintl.h> 3860484Sobrien# define _(String) gettext (String) 3960484Sobrien# ifdef gettext_noop 4060484Sobrien# define N_(String) gettext_noop (String) 4160484Sobrien# else 4260484Sobrien# define N_(String) (String) 4360484Sobrien# endif 4460484Sobrien#else 4577298Sobrien# define gettext(Msgid) (Msgid) 4677298Sobrien# define dgettext(Domainname, Msgid) (Msgid) 4777298Sobrien# define dcgettext(Domainname, Msgid, Category) (Msgid) 4877298Sobrien# define textdomain(Domainname) while (0) /* nothing */ 4977298Sobrien# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */ 5060484Sobrien# define _(String) (String) 5160484Sobrien# define N_(String) (String) 5260484Sobrien#endif 53