152284Sobrien/* intl.h - internationalization
2169689Skan   Copyright 1998, 2001, 2003, 2004 Free Software Foundation, Inc.
352284Sobrien
452284Sobrien   GCC is free software; you can redistribute it and/or modify
552284Sobrien   it under the terms of the GNU General Public License as published by
652284Sobrien   the Free Software Foundation; either version 2, or (at your option)
752284Sobrien   any later version.
852284Sobrien
952284Sobrien   GCC is distributed in the hope that it will be useful,
1052284Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
1152284Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1252284Sobrien   GNU General Public License for more details.
1352284Sobrien
1452284Sobrien   You should have received a copy of the GNU General Public License
1552284Sobrien   along with GCC; see the file COPYING.  If not, write to the Free
16169689Skan   Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
17169689Skan   02110-1301, USA.  */
1852284Sobrien
1990075Sobrien#ifndef GCC_INTL_H
2090075Sobrien#define GCC_INTL_H
2190075Sobrien
2252284Sobrien#ifdef HAVE_LOCALE_H
2352284Sobrien# include <locale.h>
2452284Sobrien#endif
2552284Sobrien
2652284Sobrien#ifndef HAVE_SETLOCALE
2752284Sobrien# define setlocale(category, locale) (locale)
2852284Sobrien#endif
2952284Sobrien
3052284Sobrien#ifdef ENABLE_NLS
31132718Skan#include <libintl.h>
32132718Skanextern void gcc_init_libintl (void);
33132718Skanextern size_t gcc_gettext_width (const char *);
3452284Sobrien#else
3590075Sobrien/* Stubs.  */
3690075Sobrien# undef textdomain
3752284Sobrien# define textdomain(domain) (domain)
3890075Sobrien# undef bindtextdomain
3952284Sobrien# define bindtextdomain(domain, directory) (domain)
4090075Sobrien# undef gettext
4152284Sobrien# define gettext(msgid) (msgid)
4290075Sobrien# define gcc_init_libintl()	/* nothing */
43132718Skan# define gcc_gettext_width(s) strlen(s)
4452284Sobrien#endif
4552284Sobrien
4652284Sobrien#ifndef _
4752284Sobrien# define _(msgid) gettext (msgid)
4852284Sobrien#endif
4952284Sobrien
5052284Sobrien#ifndef N_
51132718Skan# define N_(msgid) msgid
5252284Sobrien#endif
5390075Sobrien
54169689Skan#ifndef G_
55169689Skan# define G_(gmsgid) gmsgid
56169689Skan#endif
57169689Skan
58169689Skanextern const char *open_quote;
59169689Skanextern const char *close_quote;
60169689Skan
6190075Sobrien#endif /* intl.h */
62