qcompilerdetection.h: check __cplusplus is defined before using it
Change-Id: I6f6daabcaf393ffa855461b4cd93863723751343 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 644bd3367c342bc55f2cd612af7c0df7b3ddc12a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
cb562418fb
commit
c1ad580dca
@ -1376,7 +1376,7 @@ QT_WARNING_DISABLE_MSVC(4530) /* C++ exception handler used, but unwind semantic
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __cplusplus >= 202002L // P0846 doesn't have a feature macro :/
|
||||
#if defined(__cplusplus) && __cplusplus >= 202002L // P0846 doesn't have a feature macro :/
|
||||
# define QT_COMPILER_HAS_P0846
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user