2006/2/25, Joseph Galbraith <galb@vandyke.com>:
> > We use WIN32, not _WIN32, and this define is obviously not necessary.
>
> We might want to consider changing that, since it
> appears that WIN32 isn't defined when building for
> 64-bit, but _WIN32 is.
>
> In other words, _WIN32 appears to be the correct define
> if you mean #if "this is the win32 api" and WIN32 appears
> to be the correct define if you mean "this is the
> 32-bit version of the win32 api."
It seems to be differernt.
_WIN32 is the documented predefined macro that is always defined on
both 32 and 64 bit windows platform.
_WIN64 is predefined for 64 bit windows only.
WIN32 is not defined automatically. However, all MS wizard generated
project files I've seen seem to manually define WIN32 on the command
line when invoking the compiler. I think this is a relict from early
windows compilers (used to distinguish between 16 bit and 32 bit code)
and kept for compatibility with old code.
Norbert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 25 11:04:54 2006