keil中编译stdint.h报错 identifier "__int8" is undefined
RT
建立的工程里包含stdint.h这个文件。但是编译是报错。。。
类似的错误很多。但是这个文件是我网上下载的,为什么会有问题?
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(69): error: #20: identifier "__int8" is undefined
typedef __int8 int8_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(70): error: #20: identifier "__int16" is undefined
typedef __int16 int16_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(71): error: #20: identifier "__int32" is undefined
typedef __int32 int32_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(73): error: #65: expected a ";"
typedef unsigned __int8 uint8_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(74): error: #65: expected a ";"
typedef unsigned __int16 uint16_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(75): error: #65: expected a ";"
typedef unsigned __int32 uint32_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(83): error: #20: identifier "uint8_t" is undefined
typedef uint8_t uint_least8_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(84): error: #20: identifier "uint16_t" is undefined
typedef uint16_t uint_least16_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(85): error: #20: identifier "uint32_t" is undefined
typedef uint32_t uint_least32_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(93): error: #20: identifier "uint8_t" is undefined
typedef uint8_t uint_fast8_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(94): error: #20: identifier "uint16_t" is undefined
typedef uint16_t uint_fast16_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stdint.h(95): error: #20: identifier "uint32_t" is undefined
typedef uint32_t uint_fast32_t;
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_wwdg.h(85): error: #20: identifier "uint32_t" is undefined
void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_wwdg.h(86): error: #20: identifier "uint8_t" is undefined
void WWDG_SetWindowValue(uint8_t WindowValue);
..\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_wwdg.h(88): error: #20: identifier "uint8_t" is undefined