summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/intl.h
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 03:11:36 +0000
committerkan <kan@FreeBSD.org>2004-07-28 03:11:36 +0000
commit5e00ec74d8ce58f99801200d4d3d0412c7cc1b28 (patch)
tree052f4bb635f2bea2c5e350bd60c902be100a0d1e /contrib/gcc/intl.h
parent87b8398a7d9f9bf0e28bbcd54a4fc27db2125f38 (diff)
downloadFreeBSD-src-5e00ec74d8ce58f99801200d4d3d0412c7cc1b28.zip
FreeBSD-src-5e00ec74d8ce58f99801200d4d3d0412c7cc1b28.tar.gz
Gcc 3.4.2 20040728.
Diffstat (limited to 'contrib/gcc/intl.h')
-rw-r--r--contrib/gcc/intl.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/contrib/gcc/intl.h b/contrib/gcc/intl.h
index 8a9b35a..80a945b 100644
--- a/contrib/gcc/intl.h
+++ b/contrib/gcc/intl.h
@@ -1,5 +1,5 @@
/* intl.h - internationalization
- Copyright 1998, 2001 Free Software Foundation, Inc.
+ Copyright 1998, 2001, 2003 Free Software Foundation, Inc.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,18 +27,10 @@
# define setlocale(category, locale) (locale)
#endif
-#ifdef USE_INCLUDED_LIBINTL
-# include <intl/libgnuintl.h>
-#else
-# ifdef HAVE_LIBINTL_H
-# include <libintl.h>
-# else
-# undef ENABLE_NLS
-# endif
-#endif
-
#ifdef ENABLE_NLS
-extern void gcc_init_libintl PARAMS ((void));
+#include <libintl.h>
+extern void gcc_init_libintl (void);
+extern size_t gcc_gettext_width (const char *);
#else
/* Stubs. */
# undef textdomain
@@ -48,6 +40,7 @@ extern void gcc_init_libintl PARAMS ((void));
# undef gettext
# define gettext(msgid) (msgid)
# define gcc_init_libintl() /* nothing */
+# define gcc_gettext_width(s) strlen(s)
#endif
#ifndef _
@@ -55,7 +48,7 @@ extern void gcc_init_libintl PARAMS ((void));
#endif
#ifndef N_
-# define N_(msgid) (msgid)
+# define N_(msgid) msgid
#endif
#endif /* intl.h */
OpenPOWER on IntegriCloud