一般为Windows中的宏和UE4冲突所致,需要用如下头文件包裹冲突的头文件:
#include "Windows/AllowWindowsPlatformTypes.h"
#include "Windows/PreWindowsApi.h"
#include "冲突的头文件"
#include "Windows/PostWindowsApi.h"
#include "Windows/HideWindowsPlatformTypes.h"
一般为Windows中的宏和UE4冲突所致,需要用如下头文件包裹冲突的头文件:
#include "Windows/AllowWindowsPlatformTypes.h"
#include "Windows/PreWindowsApi.h"
#include "冲突的头文件"
#include "Windows/PostWindowsApi.h"
#include "Windows/HideWindowsPlatformTypes.h"