mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Camera (macOS): silence compiler warnings
This commit is contained in:
@@ -20,9 +20,10 @@ const char* ffDetectCamera(FFlist* result)
|
||||
|
||||
#ifdef MAC_OS_VERSION_14_0
|
||||
// Strangely `@available(macOS 14.0, *)` doesn't work here (#1594)
|
||||
if (@available(macOS 14.0, *) && &AVCaptureDeviceTypeExternal)
|
||||
if (@available(macOS 14.0, *))
|
||||
{
|
||||
deviceType = AVCaptureDeviceTypeExternal;
|
||||
if (&AVCaptureDeviceTypeExternal)
|
||||
deviceType = AVCaptureDeviceTypeExternal;
|
||||
}
|
||||
#endif
|
||||
if (deviceType == NULL)
|
||||
|
||||
Reference in New Issue
Block a user