This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Avoid multiple symbols from locale_charset
- From: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Sep 2006 21:10:27 -0400 (EDT)
- Subject: [PATCH] Avoid multiple symbols from locale_charset
The following patch avoids multiple symbols for _locale_charset
if libiconv is being used. Tested on Darwin PPC without regressions.
2006-09-11 Jack Howarth <howarth@bromo.med.uc.edu>
* intl/localecharset.c: Avoid providing locale_charset if
libiconv present.
Index: intl/localcharset.c
===================================================================
--- intl/localcharset.c (revision 116868)
+++ intl/localcharset.c (working copy)
@@ -23,6 +23,7 @@
# include <config.h>
#endif
+#if !HAVE_ICONV
/* Specification. */
#include "localcharset.h"
@@ -396,3 +397,4 @@ locale_charset ()
return codeset;
}
+#endif