From 77f270be8432df2e4516a0c48814b6976d6618c5 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 9 Aug 2015 21:06:26 +0300 Subject: [PATCH] Windows: Define DLL_EXPORT when building liblzma.dll with MSVC. src/liblzma/common/common.h uses it to set __declspec(dllexport) for the API symbols. Thanks to Adam Walling. --- windows/liblzma_dll.vcxproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/windows/liblzma_dll.vcxproj b/windows/liblzma_dll.vcxproj index 92e98383..d09f5e4f 100644 --- a/windows/liblzma_dll.vcxproj +++ b/windows/liblzma_dll.vcxproj @@ -123,7 +123,7 @@ - WIN32;HAVE_CONFIG_H;_DEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) + WIN32;HAVE_CONFIG_H;DLL_EXPORT;_DEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDebugDLL Level3 ProgramDatabase @@ -141,7 +141,7 @@ - WIN32;HAVE_CONFIG_H;_DEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) + WIN32;HAVE_CONFIG_H;DLL_EXPORT;_DEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDebugDLL Level3 ProgramDatabase @@ -158,7 +158,7 @@ - WIN32;HAVE_CONFIG_H;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) + WIN32;HAVE_CONFIG_H;DLL_EXPORT;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDLL Level3 ProgramDatabase @@ -177,7 +177,7 @@ - WIN32;HAVE_CONFIG_H;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) + WIN32;HAVE_CONFIG_H;DLL_EXPORT;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDLL Level3 ProgramDatabase @@ -195,7 +195,7 @@ - WIN32;HAVE_CONFIG_H;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) + WIN32;HAVE_CONFIG_H;DLL_EXPORT;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) MultiThreaded Level3 ProgramDatabase @@ -214,7 +214,7 @@ - WIN32;HAVE_CONFIG_H;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) + WIN32;HAVE_CONFIG_H;DLL_EXPORT;NDEBUG;_WINDOWS;_USRDLL;LIBLZMADLL_EXPORTS;%(PreprocessorDefinitions) MultiThreaded Level3 ProgramDatabase