Bit.ASICmon-c/inc/getosname.hpp
2023-03-21 18:35:50 +05:00

24 lines
461 B
C++

#ifndef BITWI2DL_GETOSNAME_H
#define BITWI2DL_GETOSNAME_H
#include <string>
std::string getOsName() {
#ifdef _WIN64
return "windows 64-bit";
#elif _WIN32
return "windows 32-bit";
#elif __APPLE__ || __MACH__
return "mac osx";
#elif __linux__
return "linux";
#elif __FreeBSD__
return "freebsd";
#elif __unix || __unix__
return "unix";
#else
return "other";
#endif
}
#endif