use inline functions for WINE checks

This commit is contained in:
FunkyFr3sh 2024-05-06 02:00:58 +02:00
parent 6626480358
commit e18eb931eb
9 changed files with 36 additions and 44 deletions

View file

@ -47,26 +47,3 @@ void verhelp_wine_get_host_version(const char** sysname, const char** release)
if (release)
*release = NULL;
}
BOOL verhelp_is_wine()
{
return wine_get_version != NULL;
}
BOOL verhelp_is_macos()
{
const char* sysname = NULL;
const char* release = NULL;
verhelp_wine_get_host_version(&sysname, &release);
return sysname && _strcmpi(sysname, "Darwin") == 0;
}
BOOL verhelp_is_linux()
{
const char* sysname = NULL;
const char* release = NULL;
verhelp_wine_get_host_version(&sysname, &release);
return sysname && _strcmpi(sysname, "Linux") == 0;
}