[Top][All Lists]
[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
- W32 Warning disabled, and updated vcproj file, J. Grant, 2006/01/14
- Re: W32 Warning disabled, and updated vcproj file, Eli Zaretskii, 2006/01/14
- Re: W32 Warning disabled, and updated vcproj file, J. Grant, 2006/01/15
- Re: W32 Warning disabled, and updated vcproj file, Paul D. Smith, 2006/01/17
- Re: W32 Warning disabled, and updated vcproj file, J. Grant, 2006/01/18
- Re: W32 Warning disabled, and updated vcproj file,
Paul D. Smith <=
Re: W32 Warning disabled, and updated vcproj file, Eli Zaretskii, 2006/01/15
Re: W32 Warning disabled, and updated vcproj file, Paul D. Smith, 2006/01/17