[cfe-dev] Extra #defines for Windows SDK 6.0a/VS2008

David Chisnall theraven at sucs.org
Fri Aug 6 06:45:02 PDT 2010


On 6 Aug 2010, at 14:21, Douglas Gregor wrote:

>> Fiddling with these things is boring but allowing clang to work as a 
>> drop-in replacement on a wider existing Windows code base would be a 
>> good thing, at least in my mind.
> 
> I wonder how much will break if we start defining _MSC_VER? Does anyone know how mingw deals with this?

We already define the GCC version macros so that we can act as a drop-in replacement for GCC.  If we're aiming to act as a drop-in replacement for MSVC then it would make sense to define their version macros and treat any incompatibilities in MS-extensions mode as bugs, just as we treat incompatibilities with GCC in GNU C modes as bugs.  

David

-- Send from my Jacquard Loom





More information about the cfe-dev mailing list