Menu

#350 Qt5 detection with #if QT_VERSION >= 0x50000 does not work.

djview
open
nobody
None
5
2022-09-20
2022-09-20
Lockywolf
No

My distro has 5.15.3_20220318_e507d3e5

in it, QT_VERSION is defined as ((5<<16)|(15<<8)|(3)), and, I belive, is compared to 0x50000 as a string, and since "(" the left parenthesis is sorted after "0", it is considered greater than 0x50000 and 0x60000.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB