Reverse change.
error: @available does not guard availability here; use if (@available) instead
This commit is contained in:
parent
995ff71546
commit
659188028e
|
@ -32,7 +32,14 @@
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
bool NSNativeMacDarkThemeAvailable()
|
bool NSNativeMacDarkThemeAvailable()
|
||||||
{
|
{
|
||||||
return __builtin_available(macOS 10.14, *);
|
if (__builtin_available(macOS 10.14, *))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user