views:

290

answers:

1

The documentation for MSVC's Predefined Macros state "_M_X64 [is] Defined for x64 processors." What does that mean, exactly? Will it be defined:

  • When I'm building for x64 processors, or
  • When I'm building with x64 processors?

Specifically, I'm looking for a compiler switch for the former case, not the latter. Will _M_X64 suffice for that purpose?

+2  A: 

It means that _M_X64 is the target processor. It is what you are building for, not what you are building on.

Michael