diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-02-23 17:14:59 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-02-24 15:45:53 -0800 |
commit | c9f6678fb44adba6b5e6675cbb32e5eb470071ec (patch) | |
tree | fdb34ca3d74f29ad99f11e492c30769d4620dadc /tests/shared | |
parent | c57e2b5d513e8bd9d1b9826d46babd9ef7d5aa57 (diff) |
tst_qstring: properly fix the build when LC_MEASUREMENTS is not defined
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 <pasi.petajajarvi@qt.io>
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/shared')
-rw-r--r-- | tests/shared/localechange.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shared/localechange.h b/tests/shared/localechange.h index 9b6deaa29d..59d2feebc4 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 |