为什么这在Visual Studio 2012(SP2)中不起作用

Why does this don't work in visual studio 2012 (SP2)

本文关键字:SP2 不起作用 2012 Visual Studio 为什么      更新时间:2023-10-16

这里应该用单词POINTER代替'*'

#define POINTER *
// Define an 8bit byte
typedef unsigned short aByte;
// Define a pointer to an 8bit byte
typedef aByte POINTER aPointerToByte;

在vs2012中无法编译,但在vs2010中可以编译

好吧,我不确定我理解这一点,但不知何故删除这段代码使问题消失。

#if !defined(__FreeBSD__)
   #include <pcrt32.h>
#endif