【发布时间】:2016-03-28 07:26:27
【问题描述】:
我希望我的应用程序可以在 win32 和 x64 平台上运行。我在头文件中添加了以下代码,但收到 C4005 警告。我怎样才能避免这种情况?
#ifdef WIN32
#define SIZEOF_ANALYSIS_INFO 168
#endif
#ifdef _WIN64
#define SIZEOF_ANALYSIS_INFO 172
#endif
【问题讨论】:
标签: c++ visual-studio-2010 32bit-64bit preprocessor-directive