打开 .vscode\c_cpp_properties.json
添加内容
“__CC_ARM”,
“__STATIC_INLINE=static”
成品:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"__CC_ARM",
"__STATIC_INLINE=static"
]
}
],
"version": 4
}
第二种情况:
添加头文件
#include <stdint.h>