Closed keisisqrl closed 1 year ago
Breaks build on 11... working on this.
removing -Werror would also work, but avoiding warnings is... better.
Compiles on macOS 12 and macOS 11.5, I don't have anything else to test. As documented in comments this uses clang features to gate the new functionality and C pragmas to quiet it about the deprecated definition. It may break in future if kIOMasterPortDefault
is moved from deprecated
to obsolete
but for now, here's a fix.
Builds on macOS 13 as well.
Thanks for the patch! I was doing the same based on the Availability.h
provided by Apple, with their recommended implementation:
https://github.com/NoelM/dmrconfig/compare/master...bug/fix-mac-os-12+-builds
Could you tell me if there's a difference with pragmas? Also I see you PR stuck for a while, nobody maintains this package?
Hi! We're trying to restart maintaining dmrconfig, after Serge decided to move it under the OpenRTX organization since, at the moment, he cannot actively work on it. About the differences between this solution and @NoelM 's one: the main one is that the one based on pragmas does the selection at compile time, which will prevent the arising of deprecation warnings or similar stuff.
Hi! We're trying to restart maintaining dmrconfig, after Serge decided to move it under the OpenRTX organization since, at the moment, he cannot actively work on it. About the differences between this solution and @NoelM 's one: the main one is that the one based on pragmas does the selection at compile time, which will prevent the arising of deprecation warnings or similar stuff.
I'm sorry, but does this mean he's the only one who can approve this PR?
No. :) I didn't merged this PR before because, not having a Mac OS computer, I cannot determine what is the better choice between this and the #70. I'm now going to merge this and, if some issues arise, we'll see how to handle them.
Fixes issue #66