In Qt 4, the compiler detection macros have no value, so they can't be compared
against. So just use the compiler-specific ones.
It also makes use of the fact that undefined tokens evaluate to 0 in
comparisons.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Breeze - Commits
- R31:f4f7b599aff5: Fix build with Qt 4
jriddell built it with GCC 5 and 7 against Qt 4 and 5.
Diff Detail
Diff Detail
- Repository
- R31 Breeze
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Oh, God, I forgot to check Q_CC_CLANG in Qt 4.
Also, that's weird Q_CC_GNU has no value in Qt 4.. http://doc.qt.io/archives/qt-4.8/qtglobal.html#Q_CC_GNU
Comment Actions
This is to stop the build failure we get on Neon
https://build.neon.kde.org/job/xenial_unstable_kde_breeze_bin_amd64/209/console