<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 4, 2023 at 4:52 AM Nigel Pearson <<a href="mailto:nigel.pearson.au@gmail.com">nigel.pearson.au@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>Sorry for the delay.</div><div><br></div><div>Haven't built anything on MacOS for years,</div><div>but I would create a new constant,</div><div>MAC_IO_SERVICE_DEPRECATED,</div><div>which is set on OS > 11.7.</div><div><br></div><div>If defined,</div><div>the .cpp files create the old kBlahPropertyElementblah constants?</div><div><br></div><div><br></div><br><div><blockquote type="cite"><div>On 17 Feb 2023, at 12:37 pm, John Hoyt <<a href="mailto:john.hoyt@gmail.com" target="_blank">john.hoyt@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr">On Mon, Feb 13, 2023 at 3:32 AM Nigel Pearson <<a href="mailto:nigel.pearson.au@gmail.com" target="_blank">nigel.pearson.au@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div><div>It was ugly code when I wrote it (in 2008!!!).</div><div><br></div><div>I think AppleRemote::  has outlived its usefulness.</div><div><br></div><div><br></div><div>git rm ???</div></div></blockquote><div><br></div><div>So it looks like more functions were affected than just the AppleRemote logic.  Replacing all of the OS 12 defines in <a href="https://github.com/MythTV/mythtv/commit/37875831a06acb651bfb545b3482281a0bb90caa" target="_blank">commit <span style="color:rgb(36,41,47);font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;text-align:right;white-space:nowrap">3787583</span></a><a href="https://github.com/MythTV/mythtv/commit/37875831a06acb651bfb545b3482281a0bb90caa" target="_blank"> </a>as follows got it sorted on Big Sur.</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_quote"><div>-#if !defined(MAC_OS_VERSION_12_0)</div></div><div class="gmail_quote"><div>+#if !defined(MAC_OS_VERSION_12_0) || !defined(MAC_OS_VERSION_11_7)</div><div><br></div></div></blockquote>Any suggestion on a cleaner approach?</div></div></blockquote></div></div></blockquote><div><br></div><div>Thanks Nigel!</div><div><br></div><div>After looking into the deprecated macros, it turned out they were all being set to 0 or NULL..  As such, David Hampton suggested creating a new static constant which was committed here: <a href="https://github.com/MythTV/mythtv/commit/c273ed0f9a2491b7f6ec377be0a0a861f7788849">https://github.com/MythTV/mythtv/commit/c273ed0f9a2491b7f6ec377be0a0a861f7788849</a></div><div><br></div><div>Neither of us were all too keen to create a new MAC_OS specific variable.</div></div></div>