]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/intl.h
gcc_release (announce_snapshot): Use changedir instead of plain cd.
[thirdparty/gcc.git] / gcc / intl.h
CommitLineData
e44d06c3 1/* intl.h - internationalization
3d7aafde 2 Copyright 1998, 2001, 2003 Free Software Foundation, Inc.
e44d06c3
JL
3
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.
8
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.
13
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
19eb1ad7 17 02111-1307, USA. */
e44d06c3 18
191bf464
ZW
19#ifndef GCC_INTL_H
20#define GCC_INTL_H
21
e44d06c3
JL
22#ifdef HAVE_LOCALE_H
23# include <locale.h>
24#endif
25
26#ifndef HAVE_SETLOCALE
27# define setlocale(category, locale) (locale)
28#endif
29
191bf464 30#ifdef ENABLE_NLS
6eb95e99 31#include <libintl.h>
3d7aafde
AJ
32extern void gcc_init_libintl (void);
33extern size_t gcc_gettext_width (const char *);
191bf464
ZW
34#else
35/* Stubs. */
36# undef textdomain
e44d06c3 37# define textdomain(domain) (domain)
191bf464 38# undef bindtextdomain
e44d06c3 39# define bindtextdomain(domain, directory) (domain)
191bf464 40# undef gettext
e44d06c3 41# define gettext(msgid) (msgid)
191bf464 42# define gcc_init_libintl() /* nothing */
c85b28e8 43# define gcc_gettext_width(s) strlen(s)
e44d06c3
JL
44#endif
45
46#ifndef _
47# define _(msgid) gettext (msgid)
48#endif
49
50#ifndef N_
9a57322b 51# define N_(msgid) msgid
e44d06c3 52#endif
191bf464
ZW
53
54#endif /* intl.h */