This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]