Fixes compilation error expanding from macro 'major'.

This commit is contained in:
Graeme Geldenhuys 2021-12-12 11:45:58 +00:00
parent 7179e75e70
commit fce98f5e16

View File

@ -5,6 +5,13 @@
#include <minecraft/PackProfile.h> #include <minecraft/PackProfile.h>
#include <minecraft/VersionFilterData.h> #include <minecraft/VersionFilterData.h>
#ifdef major
#undef major
#endif
#ifdef minor
#undef minor
#endif
void VerifyJavaInstall::executeTask() { void VerifyJavaInstall::executeTask() {
auto m_inst = std::dynamic_pointer_cast<MinecraftInstance>(m_parent->instance()); auto m_inst = std::dynamic_pointer_cast<MinecraftInstance>(m_parent->instance());