q20bit: fix checks for C++20 header include

The file contains checks for __cpp_lib_bitops and __cpp_lib_int_pow2,
but the C++20 <bit> header was only guarded by the first check.

Apparently, it's possible that only one of them is defined, so extend
the include guard.

Amends c02289f8dc

Change-Id: I49fdd4e2a2e999da653b4dfa551a499775b6e281
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ivan Solovev 2025-09-18 14:18:46 +02:00
parent d3272f9670
commit 5f56e3242f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
#include <QtCore/q20type_traits.h>
#ifdef __cpp_lib_bitops
#if defined(__cpp_lib_bitops) || defined(__cpp_lib_int_pow2)
# include <bit>
#else
# include <QtCore/qtypes.h>