# HG changeset patch # User Tony Theodore # Date 1286042825 -39600 # Node ID 2862397343ce92d8b78c0af5e16b7a2d29203b39 # Parent 0a34a9e5c60559358e8d41dbcd22958a8ea90194 bugfix for glib on OS X: libiconv test applies to 32-bit versions also diff -r 0a34a9e5c605 -r 2862397343ce src/glib-3-apple-iconv.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/glib-3-apple-iconv.patch Sun Oct 03 05:07:05 2010 +1100 @@ -0,0 +1,18 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +This patch has been taken from: +http://mail.gnome.org/archives/gtk-list/2009-August/msg00146.html + +diff -urN glib-2.25.17.orig/glib/gconvert.c glib-2.25.17/glib/gconvert.c +--- glib-2.25.17.orig/glib/gconvert.c 2010-09-14 01:57:51.000000000 +1000 ++++ glib-2.25.17/glib/gconvert.c 2010-09-27 22:51:58.000000000 +1000 +@@ -61,7 +61,7 @@ + #if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H) + #error GNU libiconv in use but included iconv.h not from libiconv + #endif +-#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) ++#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) && !defined(__APPLE__) + #error GNU libiconv not in use but included iconv.h is from libiconv + #endif + diff -r 0a34a9e5c605 -r 2862397343ce src/glib-3-apple-lp64-iconv.patch --- a/src/glib-3-apple-lp64-iconv.patch Sun Oct 03 04:57:29 2010 +1100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -This file is part of mingw-cross-env. -See doc/index.html for further information. - -This patch has been taken from: -http://mail.gnome.org/archives/gtk-list/2009-August/msg00146.html - -diff -urN glib-2.25.17.orig/glib/gconvert.c glib-2.25.17/glib/gconvert.c ---- glib-2.25.17.orig/glib/gconvert.c 2010-09-14 01:57:51.000000000 +1000 -+++ glib-2.25.17/glib/gconvert.c 2010-09-27 22:51:58.000000000 +1000 -@@ -61,7 +61,7 @@ - #if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H) - #error GNU libiconv in use but included iconv.h not from libiconv - #endif --#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) -+#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) && !(defined(__APPLE__) && defined(__LP64__)) - #error GNU libiconv not in use but included iconv.h is from libiconv - #endif -