Skip to content

Commit

Permalink
fix mupdf build when NAN is not a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Aug 16, 2024
1 parent 2b2069e commit d83c0a1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,11 @@ workspace "SumatraPDF"
links { "mupdf-libs" }
-- links { "mupdf-libs", "zlib", "freetype", "openjpeg", "libjpeg-turbo", "jbig2dec", "lcms2", "harfbuzz", "mujs", "gumbo" }

-- mupdf
-- this fixes "NAN" is not a constant in some version of msvc
-- without this it's #define _UCRT_NAN (__ucrt_int_to_float(0x7FC00000))
defines { "_UCRT_NOISY_NAN" }

project "libmupdf"
kind "SharedLib"
language "C"
Expand Down
Loading

0 comments on commit d83c0a1

Please sign in to comment.