* MAINTAINERS: Add myself as middle-end maintainer.
[official-gcc.git] / gcc / intl.h
bloba118c0a98d1bd2714831358b7c0e06b470a31e32
1 /* intl.h - internationalization
2 Copyright 1998, 2001, 2003, 2004 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, 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA. */
19 #ifndef GCC_INTL_H
20 #define GCC_INTL_H
22 #ifdef HAVE_LOCALE_H
23 # include <locale.h>
24 #endif
26 #ifndef HAVE_SETLOCALE
27 # define setlocale(category, locale) (locale)
28 #endif
30 #ifdef ENABLE_NLS
31 #include <libintl.h>
32 extern void gcc_init_libintl (void);
33 extern size_t gcc_gettext_width (const char *);
34 #else
35 /* Stubs. */
36 # undef textdomain
37 # define textdomain(domain) (domain)
38 # undef bindtextdomain
39 # define bindtextdomain(domain, directory) (domain)
40 # undef gettext
41 # define gettext(msgid) (msgid)
42 # define gcc_init_libintl() /* nothing */
43 # define gcc_gettext_width(s) strlen(s)
44 #endif
46 #ifndef _
47 # define _(msgid) gettext (msgid)
48 #endif
50 #ifndef N_
51 # define N_(msgid) msgid
52 #endif
54 #ifndef G_
55 # define G_(gmsgid) gmsgid
56 #endif
58 extern const char *open_quote;
59 extern const char *close_quote;
61 #endif /* intl.h */