summaryrefslogtreecommitdiffstats
path: root/util/unicode
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2019-03-18 08:27:22 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2019-03-18 15:16:53 +0000
commite59ba35f1b1954062266164f7b802076dc152c7b (patch)
treec8054eb969949ac9a78c87cfc095f4411ba1dbe2 /util/unicode
parentadaa3acc7418ba212d403bc5f79a2d6fbd0af0ed (diff)
Wasm: Add workaround for Emscripten compiler again
This work around was added directly to the generated files at some point, and never to the generator it seems. So to avoid removing the workaround again when we regenerate the next time, we need to add it. Task-number: QTBUG-74511 Change-Id: Ided1bd949234ba82df61c55891646823e7f72e80 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'util/unicode')
-rw-r--r--util/unicode/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index 00c69de008..1dbfa2cef0 100644
--- a/util/unicode/main.cpp
+++ b/util/unicode/main.cpp
@@ -798,6 +798,9 @@ static const char *property_string =
" signed short mirrorDiff : 16;\n"
" ushort lowerCaseSpecial : 1;\n"
" signed short lowerCaseDiff : 15;\n"
+ "#ifdef Q_OS_WASM\n"
+ " unsigned char : 0; //wasm 64 packing trick\n"
+ "#endif\n"
" ushort upperCaseSpecial : 1;\n"
" signed short upperCaseDiff : 15;\n"
" ushort titleCaseSpecial : 1;\n"
@@ -806,6 +809,9 @@ static const char *property_string =
" signed short caseFoldDiff : 15;\n"
" ushort unicodeVersion : 8; /* 5 used */\n"
" ushort nfQuickCheck : 8;\n" // could be narrowed
+ "#ifdef Q_OS_WASM\n"
+ " unsigned char : 0; //wasm 64 packing trick\n"
+ "#endif\n"
" ushort graphemeBreakClass : 5; /* 5 used */\n"
" ushort wordBreakClass : 5; /* 5 used */\n"
" ushort sentenceBreakClass : 8; /* 4 used */\n"