First commit

This commit is contained in:
2023-03-21 18:35:50 +05:00
parent e714afb108
commit dc9a742471
10 changed files with 22240 additions and 0 deletions

24
inc/getosname.hpp Normal file
View 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