Search code examples
c++-cliwin64

Where's _WIN64 defined in C++/CLI project compiled as x64?


It seems to be added automagically in every project I create and I compile for x64 but it doesn't even appear in the project's Configuration Properties/(C/C++)/Preprocessor when selecting the x64 configuration.


Solution

  • _WIN64 is automatically defined by Visual Studio. See the list of Predefined Macros.