28 Mar
2016
28 Mar
'16
11:17 a.m.
Edward Diener wrote:
I need to know what are the preprocessor defines being set by clang when it is in the mode that supports VC++. Is both __clang__ and _MSC_VER defined in all cases ?
They are, although I'm not sure whether _MSC_VER is enabled by -fms-compatibility, or just by -fms-extensions. If the latter, it won't be possible to reliably detect the former. I also don't know which of those flags enables the broken preprocessor.