Reverse change.

error: @available does not guard availability here; use if (@available) instead
This commit is contained in:
Roman Telezhynskyi 2023-08-05 19:39:23 +03:00
parent 995ff71546
commit 659188028e

View File

@ -32,7 +32,14 @@
//---------------------------------------------------------------------------------------------------------------------
bool NSNativeMacDarkThemeAvailable()
{
return __builtin_available(macOS 10.14, *);
if (__builtin_available(macOS 10.14, *))
{
return true;
}
else
{
return false;
}
}
//---------------------------------------------------------------------------------------------------------------------