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