Fix error C2169 (#5118)

This commit is contained in:
LarryIII 2019-01-10 14:22:39 -08:00 committed by Phil Christensen
parent 1955e755b7
commit 1fe5a31cd7
3 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: libmupdf
Version: 1.12.0
Version: 1.12.0-1
Build-Depends: freetype, libjpeg-turbo, harfbuzz, zlib, curl, glfw3, openjpeg, jbig2dec
Description: a lightweight PDF, XPS, and E-book library

View File

@ -0,0 +1,12 @@
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h
index 0552771..42fd037 100644
--- a/include/mupdf/fitz/system.h
+++ b/include/mupdf/fitz/system.h
@@ -117,7 +117,6 @@ static __inline int signbit(double x)
#define isinf(x) (!_finite(x))
#endif
-#define hypotf _hypotf
#define atoll _atoi64
char *fz_utf8_from_wchar(const wchar_t *s);

View File

@ -6,6 +6,8 @@ vcpkg_from_github(
REF 1.12.0
SHA512 893a1958e34355acf73624e9c47f4a97adf13d5fe33604ac384df9ac22a56ef7c18e02143eaffc3c2a08f460e4c71fee00c094b6d6696f8446977bb18f65e3da
HEAD_REF master
PATCHES
"${CURRENT_PORT_DIR}/Fix-error-C2169.patch"
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})