UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AllowWindowsPlatformTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// #TODO: redirect to platform-agnostic version for the time being. Eventually this will become an error
4#include "HAL/Platform.h"
5#if !PLATFORM_WINDOWS
7#else
8
9
11
12#ifndef WINDOWS_PLATFORM_TYPES_GUARD
13 #define WINDOWS_PLATFORM_TYPES_GUARD
14#else
15 #error Nesting AllowWindowsPlatformTypes.h is not allowed!
16#endif
17
18#pragma warning( push )
19#pragma warning( disable : 4459 )
20
21// Disable warnings about malformed SAL annotations - this is probably due to the UINT macro below
22#pragma warning( disable : 28285 ) // d3d12.h(6236) : warning C28285: For function 'SetComputeRoot32BitConstants' '_Param_(3)' syntax error in 'SAL_readableTo(elementCount(__formal(1,Num32BitValuesToSet)*sizeof(::UINT)))' near '::UINT)))'.
23
24#define INT ::INT
25#define UINT ::UINT
26#define DWORD ::DWORD
27#define FLOAT ::FLOAT
28
29#define TRUE 1
30#define FALSE 0
31
32#endif //PLATFORM_*