1 /* intl.h - internationalization
2 Copyright 1998, 2001, 2003, 2004, 2007, 2009, 2010
3 Free Software Foundation, Inc.
5 GCC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
10 GCC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GCC; see the file COPYING3. If not see
17 <http://www.gnu.org/licenses/>. */
26 #ifndef HAVE_SETLOCALE
27 # define setlocale(category, locale) (locale)
32 extern void gcc_init_libintl (void);
33 extern size_t gcc_gettext_width (const char *);
37 # define textdomain(domain) (domain)
38 # undef bindtextdomain
39 # define bindtextdomain(domain, directory) (domain)
41 # define gettext(msgid) (msgid)
42 # define ngettext(singular,plural,n) fake_ngettext(singular,plural,n)
43 # define gcc_init_libintl() /* nothing */
44 # define gcc_gettext_width(s) strlen(s)
46 extern const char *fake_ngettext(const char *singular
,const char *plural
,
52 # define _(msgid) gettext (msgid)
56 # define N_(msgid) msgid
60 # define G_(gmsgid) gmsgid
63 extern char *get_spaces (const char *);
65 extern const char *open_quote
;
66 extern const char *close_quote
;
67 extern const char *locale_encoding
;
68 extern bool locale_utf8
;