From 3635acd27a41e2e63646c09ece294cdb1a6cbf2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pasi=20Pet=C3=A4j=C3=A4j=C3=A4rvi?= Date: Mon, 20 Sep 2021 15:26:42 +0300 Subject: locale: QNX does not define LC_MEASUREMENTS Pick-to: 6.2 Change-Id: I01ce03e578173f53639927e70f49e6d9b0d08d20 Reviewed-by: Edward Welbourne --- tests/shared/localechange.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3