make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: W32 Warning disabled, and updated vcproj file


From: Paul D. Smith
Subject: Re: W32 Warning disabled, and updated vcproj file
Date: Wed, 18 Jan 2006 19:11:02 -0500

%% "J. Grant" <address@hidden> writes:

  >> #if _MSC_VER > 1000

  jg> Doesn't it need the #ifdef _MSC_VER ?

No.

According to the C standard, any proprocessor token which is left in the
constant-expression after expansion is given a value of "0".

So, if _MSC_VER is not defined it's replaced with 0 and you get:

    #if 0 > 1000

which is false.


Cheers!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]