- #if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_15
+ #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101500 // __MAC_10_15
ah, yes, clean code - #if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_15
+ #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101500 // __MAC_10_15
ah, yes, clean code> plugins/mac-capture/mac-display-capture.m:621 - The __MAC_10_15 define may not exist on devices running < 10.15, resulting in this section not being appropriately avoided during compilation. Swapping to 101500 should work for all versions of macOS.
#if QT_VERSION > QT_VERSION_CHECK(5, 15, 0)
...
#endif
and works also for Qt 5.1 or Qt 4 or 3 (i think that's when this macro was introduced, pretty much at the same time than os x 10.1 ?)Not even just “potential” in QT’s case, a quick search turned up https://forum.qt.io/topic/31071/moc-and-qt_version_check-bug and https://forum.qt.io/topic/37882/qt-4-8-qt_version_check-and-... as cases where folks have been bit by some tooling in a Qt4 environment not understanding the macro properly.
I'm happy for you if you never typed 10150 or 01150 instead of 101500 or whatever but that's definitely not my case and I need any tool that the programming language provides to help me with that ; version macros are unambiguous and I don't remember fucking one up.
how is it the exact same ? Where is the generic MACOS_VERSION(sane, version, numbers) where MACOS_VERSION(11, 3, 0) also compiles on the macos 10.7 SDK ?
https://www.steveonstuff.com/2022/01/27/no-such-thing-as-cle...
The article says we need to use more precise words. In this case, the macro can create a bug, so is using the macro "cleaner"?