zlib icon indicating copy to clipboard operation
zlib copied to clipboard

Fix compilation with clang-cl on windows

Open DenizThatMenace opened this issue 3 years ago • 1 comments

When compiling with Visual Studio using clang-cl compiler the resource-compiler of MSVC will still be used. However, it trips over some clang-specific things in the C standard headers of libc++ which come with clang-cl.

With the changes introduced in this PR the resource-compiler will no longer see these problematic headers etc.

DenizThatMenace avatar Dec 23 '21 00:12 DenizThatMenace

I have submitted the issue to Microsoft. https://developercommunity.visualstudio.com/t/ClangCl-include_next-error-when-includi/1622642?space=62&entry=myfeedback

nmoinvaz avatar Dec 25 '21 01:12 nmoinvaz