forked from Lainports/freebsd-ports
MultiMC is a custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once. It also allows you to easily install and remove mods by simply dragging and dropping. WWW: https://multimc.org PR: 224823 Submitted by: tsundoku <me@tsundoku.ne.jp> (based on)
17 lines
462 B
C++
17 lines
462 B
C++
--- api/logic/minecraft/launch/ExtractNatives.cpp.orig 2017-12-18 00:19:43 UTC
|
|
+++ api/logic/minecraft/launch/ExtractNatives.cpp
|
|
@@ -23,6 +23,14 @@
|
|
#include "FileSystem.h"
|
|
#include <QDir>
|
|
|
|
+//C library defines interfere with Java version check
|
|
+#ifdef major
|
|
+ #undef major
|
|
+#endif
|
|
+#ifdef minor
|
|
+ #undef minor
|
|
+#endif
|
|
+
|
|
static QString replaceSuffix (QString target, const QString &suffix, const QString &replacement)
|
|
{
|
|
if (!target.endsWith(suffix))
|