From 49f3592ac9c5ce0e43d441608cf4db5dbc96fdf5 Mon Sep 17 00:00:00 2001 From: glx22 Date: Mon, 3 Jun 2019 00:18:28 +0200 Subject: [PATCH] Fix: vcpkg used to patch lzma.h to define LZMA_API_STATIC for static builds (#7614) (cherry picked from commit 846fc8fe097689ef2fa1498708b3244fb4ad84ac) --- src/stdafx.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/stdafx.h b/src/stdafx.h index 84d31ec2cb..12fb1eb9bc 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -227,6 +227,13 @@ # if !defined(FT_EXPORT) # define FT_EXPORT( x ) extern "C" x CDECL # endif +# endif + + /* liblzma from vcpkg (before 5.2.4-2) used to patch lzma.h to define LZMA_API_STATIC for static builds */ +# if defined(WITH_LIBLZMA) +# if !defined(LZMA_API_STATIC) +# define LZMA_API_STATIC +# endif # endif #define strcasecmp stricmp