intl.h 1.5 KB
Newer Older
Jeff Law committed
1
/* intl.h - internationalization
2
   Copyright 1998, 2001 Free Software Foundation, Inc.
Jeff Law committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16

   GCC is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   GCC is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with GCC; see the file COPYING.  If not, write to the Free
   Software Foundation, 59 Temple Place - Suite 330, Boston, MA
17
   02111-1307, USA.  */
Jeff Law committed
18

19 20 21
#ifndef GCC_INTL_H
#define GCC_INTL_H

Jeff Law committed
22 23 24 25 26 27 28 29
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif

#ifndef HAVE_SETLOCALE
# define setlocale(category, locale) (locale)
#endif

30 31
#ifdef USE_INCLUDED_LIBINTL
# include <intl/libgnuintl.h>
Jeff Law committed
32
#else
33 34 35 36
# ifdef HAVE_LIBINTL_H
#  include <libintl.h>
# else
#  undef ENABLE_NLS
Jeff Law committed
37
# endif
38 39 40 41 42 43 44
#endif

#ifdef ENABLE_NLS
extern void gcc_init_libintl PARAMS ((void));
#else
/* Stubs.  */
# undef textdomain
Jeff Law committed
45
# define textdomain(domain) (domain)
46
# undef bindtextdomain
Jeff Law committed
47
# define bindtextdomain(domain, directory) (domain)
48
# undef gettext
Jeff Law committed
49
# define gettext(msgid) (msgid)
50
# define gcc_init_libintl()	/* nothing */
Jeff Law committed
51 52 53 54 55 56 57 58 59
#endif

#ifndef _
# define _(msgid) gettext (msgid)
#endif

#ifndef N_
# define N_(msgid) (msgid)
#endif
60 61

#endif /* intl.h */