I am trying to build 5.2.6 on windows, but, presumably after
352ba2d69af2136bc814aa1df1a132559d445616, he build using the MSVC 2013
project file fails.

The issue seems to be that HAVE_CONFIG_H, that is now tested in the rc
file, is defined for the C files compilation, but not for the resource
file in the VC project options.

The following patch makes it work for me. But this is on the vcxproj
file AFTER i have upgraded it for VS2015, so the patch might fail on
the original file, but you can get the idea of what is needed

*** windows/vs2013/liblzma_dll.vcxproj Thu Aug 18 12:10:05 2022
--- windows/vs2013/liblzma_dll.vcxproj Thu Aug 18 12:11:53 2022
***************
*** 137,142 ****
--- 137,143 ----
      </Link>
      <ResourceCompile>
        
<AdditionalIncludeDirectories>./;../../src/liblzma/common;../../src/common;../../src/liblzma/api;</AdditionalIncludeDirectories>
+       <PreprocessorDefinitions>HAVE_CONFIG_H</PreprocessorDefinitions>
      </ResourceCompile>
    </ItemDefinitionGroup>
    <ItemDefinitionGroup
Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">

Reply via email to