Try to fix tests.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-05-30 20:56:59 +03:00
parent f0bceec6ea
commit bd72aa29cc
3 changed files with 12 additions and 0 deletions

View file

@ -52,6 +52,10 @@
# define QMUP_NOEXCEPT_EXPR(x)
# endif
#ifndef __has_cpp_attribute
# define __has_cpp_attribute(x) 0
#endif
#if __cplusplus > 201402L && __has_cpp_attribute(fallthrough)
# define QMUP_FALLTHROUGH [[fallthrough]];
#elif defined(Q_CC_CLANG) && __cplusplus >= 201103L

View file

@ -530,6 +530,10 @@ const double dxfColors[][3] =
#define DL_DCS_TRANS_CODE 2
#define DL_PCS_TRANS_CODE 3
#ifndef __has_cpp_attribute
# define __has_cpp_attribute(x) 0
#endif
#if __cplusplus > 201402L && __has_cpp_attribute(fallthrough)
# define DL_FALLTHROUGH [[fallthrough]];
#elif defined(Q_CC_CLANG) && __cplusplus >= 201103L

View file

@ -266,6 +266,10 @@ enum class GSizes : unsigned char { ALL,
#define SCASSERT(cond) qt_noop();
#endif /* V_NO_ASSERT */
#ifndef __has_cpp_attribute
# define __has_cpp_attribute(x) 0
#endif
#if __cplusplus > 201402L && __has_cpp_attribute(fallthrough)
# define V_FALLTHROUGH [[fallthrough]];
#elif defined(Q_CC_CLANG) && __cplusplus >= 201103L