libcmsisstm32f10x.h(298): error: #67: expected a "}"

libcmsisstm32f10x.h(298): error:  #67: expected a

首先介绍一下csdn屏蔽广告
这个至关重要,请参考
https://blog.csdn.net/qq_40881680/article/details/82226562

更新KEIL5以后,原KEIL4 STM32模版库编译失败

出现如下错误:

libcmsisstm32f10x.h(298): error:  #67: expected a "}"
...

解决办法:
去掉手动添加的一个宏定义STM32F103_HD,KEIL5已经自动添加了
libcmsisstm32f10x.h(298): error:  #67: expected a "}"