mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-10 06:34:22 +00:00
Fix compilation error with Clang 8 in BGMOutputDeviceMenuSection.
This commit is contained in:
parent
7b8d1a0e0d
commit
64b7ca9fd9
1 changed files with 2 additions and 0 deletions
|
@ -295,10 +295,12 @@ static NSInteger const kOutputDeviceMenuItemTag = 5;
|
|||
item.representedObject = @{ @"deviceID": @(device.GetObjectID()),
|
||||
@"dataSourceID": dataSourceID ? BGMNN(dataSourceID) : [NSNull null] };
|
||||
|
||||
#if __clang_major__ >= 9
|
||||
if (@available(macOS 10.10, *)) {
|
||||
// Used for UI tests.
|
||||
item.accessibilityIdentifier = @"output-device";
|
||||
}
|
||||
#endif
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue