aboutsummaryrefslogtreecommitdiff
path: root/intl/dgettext.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2006-09-13 23:23:28 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-09-13 21:23:28 +0000
commit2a0e366b51d09b36f590c957c96b01945d85f85f (patch)
treeca374205d05038e2aea21763360f6de7054c7d20 /intl/dgettext.c
parent6f2789da074d0d9e68af0cf4bc79a64a3e552d03 (diff)
downloadgcc-2a0e366b51d09b36f590c957c96b01945d85f85f.zip
gcc-2a0e366b51d09b36f590c957c96b01945d85f85f.tar.gz
gcc-2a0e366b51d09b36f590c957c96b01945d85f85f.tar.bz2
re PR other/23541 (All error messages produce segfault)
PR other/23541 PR other/26507 Backport from gettext repository: 2003-09-04 Bruno Haible <bruno@clisp.org> * dgettext.c: Include <locale.h> after gettextP.h, not before. This ensures that libintl_dcgettext is correctly declared on Solaris. (Needed because Solaris <locale.h> includes libintl.h.) * dngettext.c: Likewise, for the libintl_dcngettext declaration. From-SVN: r116931
Diffstat (limited to 'intl/dgettext.c')
-rw-r--r--intl/dgettext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/intl/dgettext.c b/intl/dgettext.c
index 1b6ce03..e497dd9 100644
--- a/intl/dgettext.c
+++ b/intl/dgettext.c
@@ -1,5 +1,5 @@
/* Implementation of the dgettext(3) function.
- Copyright (C) 1995-1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published
@@ -20,9 +20,10 @@
# include <config.h>
#endif
+#include "gettextP.h"
+
#include <locale.h>
-#include "gettextP.h"
#ifdef _LIBC
# include <libintl.h>
#else