From c9f6678fb44adba6b5e6675cbb32e5eb470071ec Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 23 Feb 2022 17:14:59 -0800 Subject: [PATCH] tst_qstring: properly fix the build when LC_MEASUREMENTS is not defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of proxy-testing for the OS, test for the thing you're going to use. Fixes the build on FreeBSD. Pick-to: 6.3 Change-Id: Ibf4acec0f166495998f7fffd16d693df09871492 Reviewed-by: Pasi Petäjäjärvi Reviewed-by: Tatiana Borisova Reviewed-by: Edward Welbourne --- tests/shared/localechange.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared/localechange.h b/tests/shared/localechange.h index 9b6deaa29d4..59d2feebc48 100644 --- a/tests/shared/localechange.h +++ b/tests/shared/localechange.h @@ -65,7 +65,7 @@ namespace QTestLocaleChange { #define CASE(cat) case cat: return #cat CASE(LC_ALL); CASE(LC_NUMERIC); CASE(LC_TIME); CASE(LC_MONETARY); CASE(LC_MESSAGES); CASE(LC_COLLATE); -#if !defined(Q_OS_QNX) && !defined(Q_OS_INTEGRITY) +#ifdef LC_MEASUREMENT CASE(LC_MEASUREMENT); #endif #undef CASE