Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
PreWindowsApi.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"
6 #include "Microsoft/PreWindowsApi.h"
7#else
8
9// Disable the warning that the pack size is changed in this header. We do this globally for
10// clang, since the mechanism of using a sub-header to modify packing generates a -Wpragma-pack
11// warning about modifying packing alignemnt in a header.
12#if !defined(__clang__)
13 #pragma warning(disable:4103)
14#endif // __clang__
15
16
17// The 10.0.18362.0 SDK introduces an error if the packing isn't the default for the platform.
19
20// Save these macros for later; Windows redefines them
21#pragma push_macro("MAX_uint8")
22#pragma push_macro("MAX_uint16")
23#pragma push_macro("MAX_uint32")
24#pragma push_macro("MAX_int32")
25#pragma push_macro("TEXT")
26#pragma push_macro("TRUE")
27#pragma push_macro("FALSE")
28
29// Undefine the TEXT macro for winnt.h to redefine it, unless it's already been included
30#ifndef _WINNT_
31#undef TEXT
32#endif
33
34// Disable all normal third party headers
36
37#endif //PLATFORM_*
#define PLATFORM_WINDOWS
Definition Platform.h:4
#define THIRD_PARTY_INCLUDES_START
#define PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING