2000-04-03 H.J. Lu (hjl@gnu.org)
[binutils.git] / gas / asintl.h
blobb733c85f0f3939441a97addab309e39694416804
1 /* asintl.h - gas-specific header for gettext code.
2 Copyright (C) 1998, 1999 Free Software Foundation, Inc.
4 Written by Tom Tromey <tromey@cygnus.com>
6 This file is part of GAS, the GNU Assembler.
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
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
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
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 02111-1307, USA. */
23 #ifdef HAVE_LOCALE_H
24 # include <locale.h>
25 #endif
27 #ifdef ENABLE_NLS
28 # include <libintl.h>
29 # define _(String) gettext (String)
30 # ifdef gettext_noop
31 # define N_(String) gettext_noop (String)
32 # else
33 # define N_(String) (String)
34 # endif
35 #else
36 /* Stubs that do something close enough. */
37 # define textdomain(String) (String)
38 # define gettext(String) (String)
39 # define dgettext(Domain,Message) (Message)
40 # define dcgettext(Domain,Message,Type) (Message)
41 # define bindtextdomain(Domain,Directory) (Domain)
42 # define _(String) (String)
43 # define N_(String) (String)
44 #endif