Could this work?
Just to get some basic information about the operation system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | AString GetOperationType() { AString res = "unknown" #if defined (__WIN32__) res = "windows" ; #elif defined(__linux__) res = "linux" ; #elif defined(__APPLE__) res = "apple" ; #endif #ifdef __arm__ res += " arm" ; #endif return res; } |
Just to get some basic information about the operation system.