From ea29ebaf375b2bd26c0132cd483b05d6339e8f91 Mon Sep 17 00:00:00 2001 From: huangqinjin Date: Tue, 22 Jan 2019 16:32:52 +0800 Subject: fix tiff build for uwp --- ports/tiff/fix-stddef.patch | 13 +++++++++++++ ports/tiff/portfile.cmake | 1 + 2 files changed, 14 insertions(+) create mode 100644 ports/tiff/fix-stddef.patch diff --git a/ports/tiff/fix-stddef.patch b/ports/tiff/fix-stddef.patch new file mode 100644 index 000000000..a9c2ddf0b --- /dev/null +++ b/ports/tiff/fix-stddef.patch @@ -0,0 +1,13 @@ +diff --git a/port/lfind.c port/lfind.c +index 087dfa9..20fa8b4 100644 +--- a/port/lfind.c ++++ b/port/lfind.c +@@ -38,7 +38,7 @@ + #ifdef _WIN32_WCE + # include + #else +-# include ++# include + #endif + + #ifndef NULL diff --git a/ports/tiff/portfile.cmake b/ports/tiff/portfile.cmake index 92ba3963c..6e46ee6d2 100644 --- a/ports/tiff/portfile.cmake +++ b/ports/tiff/portfile.cmake @@ -15,6 +15,7 @@ vcpkg_extract_source_archive_ex( add-component-options.patch fix-cxx-shared-libs.patch crt-secure-no-deprecate.patch + fix-stddef.patch ) if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") -- cgit v1.2.3