[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Windows service support

From: Norbert Unterberg <nunterberg_at_gmail.com>
Date: 2006-02-25 11:03:36 CET

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.