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:
parent
588cbca5b7
commit
aaa7ab5222
@ -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
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
#include <qt_windows.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<bit>)
|
||||
#if __has_include(<bit>) && __cplusplus > 201703L
|
||||
#include <bit>
|
||||
#endif
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if __has_include(<bit>)
|
||||
#if __has_include(<bit>) && __cplusplus > 201703L
|
||||
#include <bit>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user