Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
AllowTCHAR.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// This header is expected to be included after HAL/HideTCHAR.h - see the comments in that header
4// for more details.
5
6// HEADER_UNIT_SKIP - Not included directly
7
8#ifdef UE_HIDETCHAR_INCLUDED
9 #undef UE_HIDETCHAR_INCLUDED
10#else
11 #error "HAL/AllowTCHAR.h included without a corresponding include of HAL/AllowTCHAR.h - check your includes."
12#endif
13
14#if !defined(UE_HIDETCHAR_INCLUDED_FIRST)
15 #define UE_HIDETCHAR_INCLUDED_FIRST
16
17 // We want UE_SYSTEM_TCHAR to exist after the first definition of TCHAR - even in
18 // !PLATFORM_TCHAR_IS_UTF8CHAR mode.
19 //
20 // TCHAR is expected to be defined inside the first includes we see being wrapped by our
21 // HideTCHAR/AllowTCHAR pair, so we will define our type in terms of it, before we undo our hack,
22 // if it exists.
23 using UE_SYSTEM_TCHAR = TCHAR;
24#endif
25
26#if PLATFORM_TCHAR_IS_UTF8CHAR
27 #undef TCHAR
28#endif