c:\program files (x86)\windows kits\8.0\include\shared\ntdef.h(137): warning C4005: “MAX_NATURAL_ALIGNMENT”: 宏重定义
1> c:\program files (x86)\windows kits\8.0\include\um\winnt.h(117) : 参见“MAX_NATURAL_ALIGNMENT”的前一个定义
1>c:\program files (x86)\windows kits\8.0\include\shared\ntdef.h(161): warning C4005: “PROBE_ALIGNMENT”: 宏重定义
1> c:\program files (x86)\windows kits\8.0\include\um\winnt.h(141) : 参见“PROBE_ALIGNMENT”的前一个定义
1>c:\program files (x86)\windows kits\8.0\include\shared\ntdef.h(632): error C2011: “_PROCESSOR_NUMBER”:“struct”类型重定义
1> c:\program files (x86)\windows kits\8.0\include\um\winnt.h(507) : 参见“_PROCESSOR_NUMBER”的声明
1>c:\program files (x86)\windows kits\8.0\include\shared\ntdef.h(643): error C2011: “_GROUP_AFFINITY”:“struct”类型重定义
加宏的控制范围行不行
#undef XXXXXX
这些文件是系统文件,我把它们单独拿出来放在了命名空间里就好了。。在MFC下包含驱动程序的头文件真是让人头疼