shared-macros.mk: simplify java settings
[oi-userland.git] / components / library / qt6 / patches / 01-Assertions.h.patch
blob3ae14c11f46006a5d05b30217ceccb8d23871e9b
1 --- qt-everywhere-src-6.2.4/qtdeclarative/src/3rdparty/masm/wtf/Assertions.h Fri Mar 4 12:35:36 2022
2 +++ qt-everywhere-src-6.2.4_patched/qtdeclarative/src/3rdparty/masm/wtf/Assertions.h Sat Mar 26 16:46:10 2022
3 @@ -344,10 +344,10 @@
5 /* COMPILE_ASSERT */
6 #ifndef COMPILE_ASSERT
7 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
8 +//#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
9 /* Unlike static_assert below, this also works in plain C code. */
10 -#define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
11 -#elif COMPILER_SUPPORTS(CXX_STATIC_ASSERT)
12 +//#define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
13 +#if COMPILER_SUPPORTS(CXX_STATIC_ASSERT)
14 #define COMPILE_ASSERT(exp, name) static_assert((exp), #name)
15 #else
16 #define COMPILE_ASSERT(exp, name) typedef int dummy##name [(exp) ? 1 : -1]