diff options
Diffstat (limited to 'apple_remote/source')
-rw-r--r-- | apple_remote/source/HIDRemoteControlDevice.m | 2 | ||||
-rw-r--r-- | apple_remote/source/KeyspanFrontRowControl.m | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apple_remote/source/HIDRemoteControlDevice.m b/apple_remote/source/HIDRemoteControlDevice.m index 6ed20b8eb6bf..56e2b930d137 100644 --- a/apple_remote/source/HIDRemoteControlDevice.m +++ b/apple_remote/source/HIDRemoteControlDevice.m @@ -507,7 +507,9 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon, hidMatchDictionary = IOServiceMatching([self remoteControlDeviceName]); // Now search I/O Registry for matching devices. + SAL_WNODEPRECATED_DECLARATIONS_PUSH // kIOMasterPortDefault (12.0) ioReturnValue = IOServiceGetMatchingServices(kIOMasterPortDefault, hidMatchDictionary, &hidObjectIterator); + SAL_WNODEPRECATED_DECLARATIONS_POP if ((ioReturnValue == kIOReturnSuccess) && (hidObjectIterator != 0)) { hidDevice = IOIteratorNext(hidObjectIterator); diff --git a/apple_remote/source/KeyspanFrontRowControl.m b/apple_remote/source/KeyspanFrontRowControl.m index a337c497844f..46bc7917486a 100644 --- a/apple_remote/source/KeyspanFrontRowControl.m +++ b/apple_remote/source/KeyspanFrontRowControl.m @@ -81,7 +81,9 @@ } // Now search I/O Registry for matching devices. + SAL_WNODEPRECATED_DECLARATIONS_PUSH // kIOMasterPortDefault (12.0) ioReturnValue = IOServiceGetMatchingServices(kIOMasterPortDefault, hidMatchDictionary, &hidObjectIterator); + SAL_WNODEPRECATED_DECLARATIONS_POP if ((ioReturnValue == kIOReturnSuccess) && (hidObjectIterator != 0)) { hidDevice = IOIteratorNext(hidObjectIterator); |