mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-06 21:29:02 +00:00
device_os returns Linux if in Termux
This commit is contained in:
parent
1e2b934d69
commit
1ca9e7974b
1 changed files with 4 additions and 4 deletions
|
@ -101,10 +101,10 @@ const char * device_os() {
|
|||
#ifdef _WIN32
|
||||
return "Windows";
|
||||
#elif __linux__
|
||||
const char * os = get_uname_os();
|
||||
if (strstr(os, "Android") != nullptr) {
|
||||
return "Android";
|
||||
}
|
||||
// const char * os = get_uname_os();
|
||||
// if (strstr(os, "Android") != nullptr) {
|
||||
// return "Android";
|
||||
// }
|
||||
return "Linux";
|
||||
#elif __APPLE__ || __MACH__
|
||||
return "macOS";
|
||||
|
|
Loading…
Add table
Reference in a new issue