]> git.sesse.net Git - vlc/commitdiff
Libiconv for Win64
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Aug 2009 10:09:47 +0000 (12:09 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Aug 2009 10:12:00 +0000 (12:12 +0200)
Patch by NightStrike

extras/contrib/src/Makefile
extras/contrib/src/Patches/libiconv-win64.patch [new file with mode: 0644]

index b6d8eb213395e407867426333ec6992dea7cecfa..635e688c29e2b6f5effc1827b154e325bddb9238 100644 (file)
@@ -449,9 +449,13 @@ libiconv: libiconv-$(LIBICONV_VERSION).tar.gz
        $(EXTRACT_GZ)
 ifdef HAVE_DARWIN_OS
        patch -p0 < Patches/libiconv.patch
+endif
+ifdef HAVE_WIN64
+       patch -p0 < Patches/libiconv-win64.patch
 endif
        patch -p0 < Patches/libiconv-autoconf-uclibc.patch
 
+
 ifdef HAVE_DARWIN_OS
 .iconv:
        touch $@
diff --git a/extras/contrib/src/Patches/libiconv-win64.patch b/extras/contrib/src/Patches/libiconv-win64.patch
new file mode 100644 (file)
index 0000000..8b47ad6
--- /dev/null
@@ -0,0 +1,20 @@
+diff -ruN libiconv/lib/iconv.c libiconv.new/lib/iconv.c
+--- libiconv/lib/iconv.c       2003-05-22 21:17:40.000000000 +0200
++++ libiconv.new/lib/iconv.c   2009-08-23 12:07:44.000000000 +0200
+@@ -21,6 +21,7 @@
+ #include <iconv.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <string.h>
+ #include "config.h"
+ #include "localcharset.h"
+@@ -156,7 +157,7 @@
+ };
+ #define stringpool2 ((const char *) &stringpool2_contents)
+ static const struct alias sysdep_aliases[] = {
+-#define S(tag,name,encoding_index) { (int)(long)&((struct stringpool2_t *)0)->stringpool_##tag, encoding_index },
++#define S(tag,name,encoding_index) { (int)(intptr_t)&((struct stringpool2_t *)0)->stringpool_##tag, encoding_index },
+ #include "aliases2.h"
+ #undef S
+ };