]> gcc.gnu.org Git - gcc.git/blob - gcc/intl.h
os_defines.h: Update to avoid #defines for strtoll and strtoull.
[gcc.git] / gcc / intl.h
1 /* intl.h - internationalization
2 Copyright 1998, 2001 Free Software Foundation, Inc.
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
17 02111-1307, USA. */
18
19 #ifndef GCC_INTL_H
20 #define GCC_INTL_H
21
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
30 #ifdef USE_INCLUDED_LIBINTL
31 # include <intl/libgnuintl.h>
32 #else
33 # ifdef HAVE_LIBINTL_H
34 # include <libintl.h>
35 # else
36 # undef ENABLE_NLS
37 # endif
38 #endif
39
40 #ifdef ENABLE_NLS
41 extern void gcc_init_libintl PARAMS ((void));
42 #else
43 /* Stubs. */
44 # undef textdomain
45 # define textdomain(domain) (domain)
46 # undef bindtextdomain
47 # define bindtextdomain(domain, directory) (domain)
48 # undef gettext
49 # define gettext(msgid) (msgid)
50 # define gcc_init_libintl() /* nothing */
51 #endif
52
53 #ifndef _
54 # define _(msgid) gettext (msgid)
55 #endif
56
57 #ifndef N_
58 # define N_(msgid) (msgid)
59 #endif
60
61 #endif /* intl.h */
This page took 0.036115 seconds and 5 git commands to generate.