First commit
This commit is contained in:
24
inc/getosname.hpp
Normal file
24
inc/getosname.hpp
Normal file
@ -0,0 +1,24 @@
|
||||
#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
|
Reference in New Issue
Block a user