* invoke.texi: Add more options to summary list.
[official-gcc.git] / gcc / intl.h
blob56c075e6c05287417fd5d3bb34cf1e5102aef927
1 /* intl.h - internationalization
2 Copyright 1998 Free Software Foundation, Inc.
4 GCC is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 GCC is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with GCC; see the file COPYING. If not, write to the Free
16 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
17 02111-1307, USA. */
19 #ifdef HAVE_LOCALE_H
20 # include <locale.h>
21 #endif
23 #ifndef HAVE_SETLOCALE
24 # define setlocale(category, locale) (locale)
25 #endif
27 #ifdef ENABLE_NLS
28 # include <libintl.h>
29 extern const char localedir[];
30 #else
31 /* Stubs that do something close enough. */
32 # ifdef textdomain
33 # undef textdomain
34 # endif
35 # define textdomain(domain) (domain)
36 # ifdef bindtextdomain
37 # undef bindtextdomain
38 # endif
39 # define bindtextdomain(domain, directory) (domain)
40 # ifdef gettext
41 # undef gettext
42 # endif
43 # define gettext(msgid) (msgid)
44 #endif
46 #ifndef _
47 # define _(msgid) gettext (msgid)
48 #endif
50 #ifndef N_
51 # define N_(msgid) (msgid)
52 #endif