diff --git a/common/UpdateType.cc b/common/UpdateType.cc index 8a75ebc374d6a1c8329e3564df1e3f792f766c6e..8950a21e01cadbf9dd1d1a24212df3936c2ac154 100644 --- a/common/UpdateType.cc +++ b/common/UpdateType.cc @@ -39,13 +39,6 @@ * * \*===========================================================================*/ -// Workaround compiler bug in VS2017 and earlier with colliding Qt operators and bitset -#ifdef _MSC_VER - #if (_MSC_VER <= 1916) - #define QT_NO_FLOAT16_OPERATORS - #endif -#endif - #include "TypesInternal.hh" #include "UpdateType.hh" #include <QCoreApplication> diff --git a/common/UpdateType.hh b/common/UpdateType.hh index 626f7b577982f7adad018ddb75a147c3a8bb8f24..2778cc7d71b317449100f2ac7c2a8dd48f92798d 100644 --- a/common/UpdateType.hh +++ b/common/UpdateType.hh @@ -41,6 +41,14 @@ #pragma once +// Workaround compiler bug in VS2017 and earlier with colliding Qt operators and bitset +#ifdef _MSC_VER + #if (_MSC_VER <= 1916) + #define QT_NO_FLOAT16_OPERATORS + #endif +#endif + + #include <OpenFlipper/common/GlobalDefines.hh> #include <bitset> #include <QString>