Is there preprocessor define I canu use for that purpose
Windows SDK
Your best bet is to use the GetNativeSystemInfo function. For example:
WORD GetProcessorArchitecture()
{
SYSTEM_INFO info = { 0 };
::GetNativeSystemInfo(&info);
return info.wProcessorArchitecture;
}
It will return PROCESSOR_ARCHITECTURE_INTEL for x86 and PROCESSOR_ARCHITECTURE_AMD64 indicating x64.
Cheers,
Kenny Kerr