summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2021-09-20 15:26:42 +0300
committerTatiana Borisova <tatiana.borisova@qt.io>2021-09-21 14:36:18 +0300
commit3635acd27a41e2e63646c09ece294cdb1a6cbf2f (patch)
tree39c12f71bae2b159170adeb0f89df48361a73b16
parent8cc6c7cd6eb88b197defc3e4f73d2f5706455bd4 (diff)
locale: QNX does not define LC_MEASUREMENTS
Pick-to: 6.2 Change-Id: I01ce03e578173f53639927e70f49e6d9b0d08d20 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--tests/shared/localechange.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/shared/localechange.h b/tests/shared/localechange.h
index 3790a108dc..b363af1175 100644
--- a/tests/shared/localechange.h
+++ b/tests/shared/localechange.h
@@ -64,7 +64,10 @@ namespace QTestLocaleChange {
switch (category) {
#define CASE(cat) case cat: return #cat
CASE(LC_ALL); CASE(LC_NUMERIC); CASE(LC_TIME); CASE(LC_MONETARY);
- CASE(LC_MESSAGES); CASE(LC_MEASUREMENT); CASE(LC_COLLATE);
+ CASE(LC_MESSAGES); CASE(LC_COLLATE);
+#ifndef Q_OS_QNX
+ CASE(LC_MEASUREMENT);
+#endif
#undef CASE
// Nothing in our code pays attention to any other LC_*
default: