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

Chris Lattner clattner at apple.com
Fri Aug 6 11:13:22 PDT 2010


On Aug 6, 2010, at 6:45 AM, David Chisnall wrote:

> 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.  

I agree.

-Chris



More information about the cfe-dev mailing list