184655Syokota/* asintl.h - gas-specific header for gettext code. 284655Syokota Copyright 1998, 1999, 2000, 2005 Free Software Foundation, Inc. 384655Syokota 484655Syokota Written by Tom Tromey <tromey@cygnus.com> 584655Syokota 684655Syokota This file is part of GAS, the GNU Assembler. 784655Syokota 884655Syokota GAS is free software; you can redistribute it and/or modify 984655Syokota it under the terms of the GNU General Public License as published by 1084655Syokota the Free Software Foundation; either version 2, or (at your option) 1184655Syokota any later version. 1284655Syokota 1384655Syokota GAS is distributed in the hope that it will be useful, 1484655Syokota but WITHOUT ANY WARRANTY; without even the implied warranty of 1584655Syokota MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1684655Syokota GNU General Public License for more details. 1784655Syokota 1884655Syokota You should have received a copy of the GNU General Public License 1984655Syokota along with GAS; see the file COPYING. If not, write to the Free 2084655Syokota Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 2184655Syokota 02110-1301, USA. */ 2284655Syokota 2384655Syokota#ifdef HAVE_LOCALE_H 2484655Syokota# ifndef ENABLE_NLS 2584655Syokota /* The Solaris version of locale.h always includes libintl.h. If we have 2684655Syokota been configured with --disable-nls then ENABLE_NLS will not be defined 2784655Syokota and the dummy definitions of bindtextdomain (et al) below will conflict 28197110Sdelphij with the defintions in libintl.h. So we define these values to prevent 2984655Syokota the bogus inclusion of libintl.h. */ 3084655Syokota# define _LIBINTL_H 3184655Syokota# define _LIBGETTEXT_H 3284655Syokota# endif 3384655Syokota# include <locale.h> 3484655Syokota#endif 3584655Syokota 3684664Sru#ifdef ENABLE_NLS 3784655Syokota# include <libintl.h> 3884655Syokota# define _(String) gettext (String) 39108098Strhodes# ifdef gettext_noop 4084655Syokota# define N_(String) gettext_noop (String) 4184655Syokota# else 4284655Syokota# define N_(String) (String) 4384655Syokota# endif 4484655Syokota#else 4584655Syokota# define gettext(Msgid) (Msgid) 4684655Syokota# define dgettext(Domainname, Msgid) (Msgid) 4784655Syokota# define dcgettext(Domainname, Msgid, Category) (Msgid) 4884664Sru# define textdomain(Domainname) while (0) /* nothing */ 4984664Sru# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */ 5084664Sru# define _(String) (String) 5184664Sru# define N_(String) (String) 5284655Syokota#endif 5384655Syokota