xref: /dflybsd-src/contrib/binutils-2.27/gas/asintl.h (revision e656dc90e3d65d744d534af2f5ea88cf8101ebcf)
1*a9fa9459Szrj /* asintl.h - gas-specific header for gettext code.
2*a9fa9459Szrj    Copyright (C) 1998-2016 Free Software Foundation, Inc.
3*a9fa9459Szrj 
4*a9fa9459Szrj    Written by Tom Tromey <tromey@cygnus.com>
5*a9fa9459Szrj 
6*a9fa9459Szrj    This file is part of GAS, the GNU Assembler.
7*a9fa9459Szrj 
8*a9fa9459Szrj    GAS is free software; you can redistribute it and/or modify
9*a9fa9459Szrj    it under the terms of the GNU General Public License as published by
10*a9fa9459Szrj    the Free Software Foundation; either version 3, or (at your option)
11*a9fa9459Szrj    any later version.
12*a9fa9459Szrj 
13*a9fa9459Szrj    GAS is distributed in the hope that it will be useful, but WITHOUT
14*a9fa9459Szrj    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15*a9fa9459Szrj    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16*a9fa9459Szrj    License for more details.
17*a9fa9459Szrj 
18*a9fa9459Szrj    You should have received a copy of the GNU General Public License
19*a9fa9459Szrj    along with GAS; see the file COPYING.  If not, write to the Free
20*a9fa9459Szrj    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21*a9fa9459Szrj    02110-1301, USA.  */
22*a9fa9459Szrj 
23*a9fa9459Szrj #ifdef HAVE_LOCALE_H
24*a9fa9459Szrj # ifndef ENABLE_NLS
25*a9fa9459Szrj    /* The Solaris version of locale.h always includes libintl.h.  If we have
26*a9fa9459Szrj       been configured with --disable-nls then ENABLE_NLS will not be defined
27*a9fa9459Szrj       and the dummy definitions of bindtextdomain (et al) below will conflict
28*a9fa9459Szrj       with the defintions in libintl.h.  So we define these values to prevent
29*a9fa9459Szrj       the bogus inclusion of libintl.h.  */
30*a9fa9459Szrj #  define _LIBINTL_H
31*a9fa9459Szrj #  define _LIBGETTEXT_H
32*a9fa9459Szrj # endif
33*a9fa9459Szrj # include <locale.h>
34*a9fa9459Szrj #endif
35*a9fa9459Szrj 
36*a9fa9459Szrj #ifdef ENABLE_NLS
37*a9fa9459Szrj # include <libintl.h>
38*a9fa9459Szrj # define _(String) gettext (String)
39*a9fa9459Szrj # ifdef gettext_noop
40*a9fa9459Szrj #  define N_(String) gettext_noop (String)
41*a9fa9459Szrj # else
42*a9fa9459Szrj #  define N_(String) (String)
43*a9fa9459Szrj # endif
44*a9fa9459Szrj #else
45*a9fa9459Szrj # define gettext(Msgid) (Msgid)
46*a9fa9459Szrj # define dgettext(Domainname, Msgid) (Msgid)
47*a9fa9459Szrj # define dcgettext(Domainname, Msgid, Category) (Msgid)
48*a9fa9459Szrj # define textdomain(Domainname) while (0) /* nothing */
49*a9fa9459Szrj # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
50*a9fa9459Szrj # define _(String) (String)
51*a9fa9459Szrj # define N_(String) (String)
52*a9fa9459Szrj #endif
53