Commit 5e1759b9 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf
Browse files

contrib: iconv: fix for windows store


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b128c6af
......@@ -16,6 +16,7 @@ $(TARBALLS)/libiconv-$(LIBICONV_VERSION).tar.gz:
iconv: libiconv-$(LIBICONV_VERSION).tar.gz .sum-iconv
$(UNPACK)
$(APPLY) $(SRC)/iconv/win32.patch
ifdef HAVE_WIN64
$(APPLY) $(SRC)/iconv/libiconv-win64.patch
endif
......
--- iconv/srclib/stdio-write.c.orig 2013-08-15 11:50:20.508093720 +0200
+++ iconv/srclib/stdio-write.c 2013-08-15 11:51:36.344096864 +0200
@@ -20,6 +20,14 @@
/* Specification. */
#include <stdio.h>
+#ifdef _WIN32
+#include <winapifamily.h>
+
+#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+#define GetFileType(h) FILE_TYPE_UNKNOWN
+#endif
+#endif
+
/* Replace these functions only if module 'nonblocking' or module 'sigpipe' is
requested. */
#if GNULIB_NONBLOCKING || GNULIB_SIGPIPE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment