[Vm-dev] WIN64 vs _WIN64

Tobias Pape Das.Linux at gmx.de
Tue May 16 15:57:49 UTC 2017


> On 16.05.2017, at 17:41, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> 
> Hi Win64 mavens,
> 
>     I see in platforms//win32/third-party/dx9sdk that the source code tests for 
>         #if _WIN64
> In most places we've used
>         #if WIN64
> but in platforms//Cross/plugins/IA32ABI/ia32abi.h & platforms//Cross/vm/sqMemoryFence.h we have also used _WIN64.
> 
> Is it OK for us to continue to use the cleaner form or should we use _WIN64?


_WIN64 is defined by the compiler (https://msdn.microsoft.com/en-us/library/b0084kay.aspx)

	"_WIN64 Defined as 1 when the compilation target is 64-bit ARM or x64. Otherwise, undefined."	
(which also means, #ifdef would be better than #if)

According to the internet (
	https://www.viva64.com/en/k/0040/
) WIN64 is typically homegrown.


Also, it seems there are but a few (8x in plaform/ and src/) users of WIN64 (w/o _)

Best regards
	-Tobias



> 
> _,,,^..^,,,_
> best, Eliot



More information about the Vm-dev mailing list