gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / gas / asintl.h
CommitLineData
252b5132 1/* asintl.h - gas-specific header for gettext code.
250d07de 2 Copyright (C) 1998-2021 Free Software Foundation, Inc.
252b5132
RH
3
4 Written by Tom Tromey <tromey@cygnus.com>
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
ec2655a6 10 the Free Software Foundation; either version 3, or (at your option)
252b5132
RH
11 any later version.
12
ec2655a6
NC
13 GAS is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
252b5132
RH
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to the Free
4b4da160
NC
20 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21 02110-1301, USA. */
252b5132 22
23d61380
AM
23#ifndef ENABLE_NLS
24 /* The Solaris version of locale.h always includes libintl.h. If we have
25 been configured with --disable-nls then ENABLE_NLS will not be defined
26 and the dummy definitions of bindtextdomain (et al) below will conflict
27 with the definitions in libintl.h. So we define these values to prevent
28 the bogus inclusion of libintl.h. */
29# define _LIBINTL_H
30# define _LIBGETTEXT_H
252b5132 31#endif
23d61380 32#include <locale.h>
252b5132
RH
33
34#ifdef ENABLE_NLS
35# include <libintl.h>
36# define _(String) gettext (String)
37# ifdef gettext_noop
38# define N_(String) gettext_noop (String)
39# else
40# define N_(String) (String)
41# endif
42#else
897083bd
AM
43# define gettext(Msgid) (Msgid)
44# define dgettext(Domainname, Msgid) (Msgid)
45# define dcgettext(Domainname, Msgid, Category) (Msgid)
6003e27e
AM
46# define ngettext(Msgid1, Msgid2, n) \
47 (n == 1 ? Msgid1 : Msgid2)
48# define dngettext(Domainname, Msgid1, Msgid2, n) \
49 (n == 1 ? Msgid1 : Msgid2)
50# define dcngettext(Domainname, Msgid1, Msgid2, n, Category) \
51 (n == 1 ? Msgid1 : Msgid2)
52# define textdomain(Domainname) do {} while (0)
53# define bindtextdomain(Domainname, Dirname) do {} while (0)
252b5132
RH
54# define _(String) (String)
55# define N_(String) (String)
56#endif
This page took 0.900356 seconds and 4 git commands to generate.