diff --git a/src/libs/qmuparser/qmuparserdef.h b/src/libs/qmuparser/qmuparserdef.h index 5ca3bef72..d5d5126f6 100644 --- a/src/libs/qmuparser/qmuparserdef.h +++ b/src/libs/qmuparser/qmuparserdef.h @@ -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 diff --git a/src/libs/vdxf/dxflib/dl_codes.h b/src/libs/vdxf/dxflib/dl_codes.h index 48b98db73..cf7ad34d8 100644 --- a/src/libs/vdxf/dxflib/dl_codes.h +++ b/src/libs/vdxf/dxflib/dl_codes.h @@ -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 diff --git a/src/libs/vmisc/def.h b/src/libs/vmisc/def.h index eac7fadfe..3eb44d621 100644 --- a/src/libs/vmisc/def.h +++ b/src/libs/vmisc/def.h @@ -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