28 Mar
2016
28 Mar
'16
11:45 a.m.
On 3/28/2016 7:17 AM, Peter Dimov wrote:
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.
Thanks ! I have asked about this on the clang developer's mailing list.