Only include <bit> if using post C++17

Otherwise we hit an #error statement in MSVC standard library.

Change-Id: Ib029edf0be8513a80f2640fd9ca75541615a0448
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Allan Sandfeld Jensen 2020-09-15 11:01:36 +02:00
parent 588cbca5b7
commit aaa7ab5222
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@
#include <QtCore/qglobal.h>
#include <QtCore/qalgorithms.h>
#if __has_include(<bit>)
#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif

View File

@ -50,7 +50,7 @@
#include <qt_windows.h>
#endif
#if __has_include(<bit>)
#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif

View File

@ -42,7 +42,7 @@
#include <QtCore/qglobal.h>
#if __has_include(<bit>)
#if __has_include(<bit>) && __cplusplus > 201703L
#include <bit>
#endif