Skip to content

Commit 20e5f2c

Browse files
authored
Merge pull request #1019 from sblaisot/win_compile_fix
Fix windows Build: activate QT initializer lists
2 parents e23731d + 82c73d9 commit 20e5f2c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/track/keyutils.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
// Horrible Hack to workaround QT 4.8 bug with MSVC compiler. lp:1627826
2+
// QT 4.8 explicitely disable Initializer lists, but initializer lists is
3+
// supported with MSVC 2013 SP2 +
4+
// http://code.qt.io/cgit/qt/qt.git/tree/src/corelib/global/qglobal.h#n910
5+
// TODO(XXX): Remove after QT4 deprecation, unneeded with QT5
6+
#if _MSC_VER >= 1800 /* MSVS 2013 */
7+
#define Q_COMPILER_INITIALIZER_LISTS
8+
#endif /* MSVS 2013 */
19
#include <QtDebug>
210
#include <QMap>
311
#include <QMutexLocker>

0 commit comments

Comments
 (0)