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>
This commit is contained in:
Thiago Macieira 2022-02-23 17:14:59 -08:00
parent c57e2b5d51
commit c9f6678fb4

View File

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