Fix mingw build
This commit is contained in:
parent
81fedde492
commit
d1f278e45b
2 changed files with 10 additions and 22 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue