Error C2071: 'uint8': illegal storage class

I have the following problem when compiling a copy of the example project ActionRPG using UE4.26, Microsoft Visual Studio2019 14.29.30133:

   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(22) : error C2143: syntax error: missing '{' before '<'
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(22) : error C2059: syntax error: '<'
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(23) : error C3856: 'SelectIntPointerType': symbol is not a class template
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(37) : error C2071: 'uint8': illegal storage class
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(40) : error C2071: 'uint16': illegal storage class
……
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): error C2061: syntax error: identifier 'std'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): error C2059: syntax error: ';'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): fatal error C1003: error count exceeds 100; stopping compilation

When I open GenericPlatform.h, there is nothing wrong with the file. UE4 is compatible with Windows.h, and it needs to include header files

include “AllowWindowsPlatformTypes.h”
or
include “Windows/AllowWindowsPlatformTypes.h”
I then included the above header file in ActionRPG.h, and the result was the same.

我错将项目中的一个.h文件写为.c文件了。(I made the mistake of writing a.h file in the project as a.c file.)