Fix mingw build

This commit is contained in:
Ben Gräf 2019-09-01 22:08:05 +02:00
parent 81fedde492
commit d1f278e45b
2 changed files with 10 additions and 22 deletions

View file

@ -62,25 +62,4 @@
# endif
#endif
#include <string>
class Version
{
public:
inline static std::string string()
{
std::string version = std::to_string(APP_VER_MAJOR) + std::string(".") + std::to_string(APP_VER_MINOR) +
std::string(".") + std::to_string(APP_VER_PATCH);
return version;
}
inline static int code()
{
std::string version = std::to_string(APP_VER_MAJOR) + std::to_string(APP_VER_MINOR) + std::to_string(APP_VER_PATCH);
return std::stoi(version);
}
};
#endif /* XMRIG_VERSION_H */