[cfe-dev] clang-cl error on building simple cpp with only windows.h + boost-mutex included

Dennis Luehring via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 11 08:06:43 PST 2016


Am 11.02.2016 um 16:51 schrieb Nico Weber:
> In this case, I'm guessing something in boost does `#if __clang__` and then
> assumes "not windows" in that block. If that's indeed the cause, the fix
> would be to not define __clang__, which isn't an option. So yes, 100%
> compatibility in the sense that clang-cl defines only the built-in macros
> that cl.exe defines isn't a goal.

but it would help porting if the definition of __clang__ could be temporary
disabled or a warning if its used in context of clang-cl - maybe



More information about the cfe-dev mailing list