bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] [PATCH] Guard against inclusion of locale.h


From: Pierre Ynard
Subject: [bug-gnu-libiconv] [PATCH] Guard against inclusion of locale.h
Date: Wed, 11 Nov 2009 23:25:57 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

This file is missing on some platforms, namely WinCE.


diff -urNp libiconv.orig/src/iconv.c libiconv/src/iconv.c
--- libiconv.orig/src/iconv.c   2009-06-21 13:17:33.000000000 +0200
+++ libiconv/src/iconv.c        2009-11-11 05:35:58.000000000 +0100
@@ -26,7 +26,9 @@
 #include <string.h>
 #include <iconv.h>
 #include <errno.h>
-#include <locale.h>
+#ifdef HAVE_SETLOCALE
+# include <locale.h>
+#endif
 #include <fcntl.h>
 
 /* Ensure that iconv_no_i18n does not depend on libintl.  */


Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]