We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3462fab + 9e4f393 commit c260fa4Copy full SHA for c260fa4
Source/UnrealEnginePython/Private/UEPyModule.h
@@ -14,6 +14,15 @@
14
#include "Wrappers/UEPyFColor.h"
15
#include "Wrappers/UEPyFLinearColor.h"
16
17
+// backward compatibility for UE4.20 TCHAR_TO_WCHAR
18
+#ifndef TCHAR_TO_WCHAR
19
+ // SIZEOF_WCHAR_T is provided by pyconfig.h
20
+ #if SIZEOF_WCHAR_T == (PLATFORM_TCHAR_IS_4_BYTES ? 4 : 2)
21
+ #define TCHAR_TO_WCHAR(str) str
22
+ #else
23
+ #define TCHAR_TO_WCHAR(str) (wchar_t*)StringCast<wchar_t>(static_cast<const TCHAR*>(str)).Get()
24
+ #endif
25
+#endif
26
27
28
UWorld *ue_get_uworld(ue_PyUObject *);
0 commit comments