Re: WIN32 symbol definition in rules\mak efile_defs_msvc.bkl

Francesco Montorsi <[email protected]> Fri, 5 Mar 2010 21:06:54 +0000 (UTC)
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <[email protected]>
Hi,

Vaclav Slavik <vslavik@...> writes:
> So while yes, I think we can remove them safely, I'd prefer to do
> exactly what native projects do (unless it would be too complicated to
> implement, in which case just remove WIN32 definition). Do you know what
> do manually created projects do in this regard?
if I manually create a "Win32 project" using MSVC wizard it indeed 
creates a project where the WIN32 symbol is in the preprocessor symbols.
I think that the WIN32 symbol should be removed only from the "msvc" format 
and preserved in the MSVC IDE project formats. 

> Also, does the resource compiler define _WIN32 too?
yes, it does (although it does not define _WINDOWS -- thus bakefile correctly 
adds it currently). But unlike reported above for the preprocessor, 
if I manually create a "Win32 project" using MSVC wizard it creates 
a project where the WIN32 symbol is NOT in the preprocessor symbols 
for the RC compiler.

Francesco






------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev