locale: QNX does not define LC_MEASUREMENTS

Pick-to: 6.2
Change-Id: I01ce03e578173f53639927e70f49e6d9b0d08d20
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Pasi Petäjäjärvi 2021-09-20 15:26:42 +03:00 committed by Tatiana Borisova
parent 8cc6c7cd6e
commit 3635acd27a

View File

@ -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: