summarylogtreecommitdiffstats
path: root/Platform-bitwise-or.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Platform-bitwise-or.patch')
-rw-r--r--Platform-bitwise-or.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/Platform-bitwise-or.patch b/Platform-bitwise-or.patch
new file mode 100644
index 000000000000..491d8f224668
--- /dev/null
+++ b/Platform-bitwise-or.patch
@@ -0,0 +1,11 @@
+--- Platform.h 2018-10-11 14:05:07.503192188 -0500
++++ Platform.h_new 2018-10-11 14:52:43.025935194 -0500
+@@ -802,7 +802,7 @@
+ static_assert((!TAreTypesEqual<ANSICHAR, WIDECHAR>::Value), "ANSICHAR and WIDECHAR should be different types.");
+ static_assert((!TAreTypesEqual<ANSICHAR, UCS2CHAR>::Value), "ANSICHAR and CHAR16 should be different types.");
+ static_assert((!TAreTypesEqual<WIDECHAR, UCS2CHAR>::Value), "WIDECHAR and CHAR16 should be different types.");
+- static_assert((TAreTypesEqual<TCHAR, ANSICHAR>::Value || TAreTypesEqual<TCHAR, WIDECHAR>::Value), "TCHAR should either be ANSICHAR or WIDECHAR.");
++ static_assert((TAreTypesEqual<TCHAR, ANSICHAR>::Value | TAreTypesEqual<TCHAR, WIDECHAR>::Value), "TCHAR should either be ANSICHAR or WIDECHAR.");
+
+ static_assert(sizeof(uint8) == 1, "BYTE type size test failed.");
+ static_assert(int32(uint8(-1)) == 0xFF, "BYTE type sign test failed.");