[development] fixes for targeting macOS Monterey (12.x) (#7666)
Targeting macOS 12.x fails to compile due to some named constants being deprecated and replaced Signed-off-by: AMZN-ScottR 24445312+AMZN-ScottR@users.noreply.github.com
This commit is contained in:
@@ -26,8 +26,13 @@ QString graphicsCardName()
|
||||
// Create an iterator
|
||||
io_iterator_t iterator;
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_12_0
|
||||
if (IOServiceGetMatchingServices(kIOMainPortDefault,matchDict,
|
||||
&iterator) == kIOReturnSuccess)
|
||||
#else
|
||||
if (IOServiceGetMatchingServices(kIOMasterPortDefault,matchDict,
|
||||
&iterator) == kIOReturnSuccess)
|
||||
#endif
|
||||
{
|
||||
// Iterator for devices found
|
||||
io_registry_entry_t regEntry;
|
||||
|
||||
Reference in New Issue
Block a user