add IsAndroid function to versionhelpers header
This commit is contained in:
parent
30ae9630fb
commit
423ca1d5a3
1 changed files with 8 additions and 0 deletions
|
@ -220,4 +220,12 @@ VERSIONHELPERAPI IsLinux(void) {
|
|||
return sysname && _strcmpi(sysname, "Linux") == 0;
|
||||
}
|
||||
|
||||
VERSIONHELPERAPI IsAndroid(void) {
|
||||
const char* sysname = NULL;
|
||||
const char* release = NULL;
|
||||
verhelp_wine_get_host_version(&sysname, &release);
|
||||
|
||||
return release && strstr(release, "android") == 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue