How to know on which OS (Linux, Windows, Android) a process is running?
I build a C++
library which could run on Linux, Windows and Android.
I need to know on which kind of operating system the process is running on to specify different default path to write logs.
How can I get this information?
Update:
Is it possible to distinguish which OS (i.e. Linux
or Android
) the built library is (loaded and) running on. Am I right?