Utils: Workaround missing __cpp_noexcept in clang

Clang is not defining __cpp_noexcept.

Change-Id: Icb4e2dabb413e676614a9dd478e996d587c7f5d2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Marco Bubke
2016-12-07 16:07:01 +01:00
parent 8c701f620a
commit 28a120b2e2

View File

@@ -51,6 +51,9 @@
#endif
#pragma push_macro("noexcept")
#ifdef __clang__
#define __cpp_noexcept 201003
#endif
#ifndef __cpp_noexcept
#define noexcept
#endif