diff --git a/src/myx/backports/qt/common.hpp b/src/myx/backports/qt/common.hpp index 55f68b1..f225fb0 100644 --- a/src/myx/backports/qt/common.hpp +++ b/src/myx/backports/qt/common.hpp @@ -3,10 +3,11 @@ #pragma once -#if defined( QT_VERSION ) - -#if QT_VERSION <= 0x050700 +#if !defined( QT_VERSION ) #include +#endif + +#if (QT_VERSION <= 0x050700) template< typename ... Args > struct QOverload { @@ -29,9 +30,6 @@ Q_DECL_CONSTEXPR typename std::add_const< T >::type& qAsConst( T& t ) noexcept template < typename T > void qAsConst( const T&& ) = delete; - #endif // if QT_VERSION <= 0x050700 -#endif // if defined( QT_VERSION ) - #endif // MYX_BACKPORTS_QT_COMMON_HPP_