freebsd-ports/games/multimc/files/patch-api_logic_minecraft_launch_ExtractNatives.cpp
Tobias Kortkamp 0ab76735dc New port: games/multimc
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)
2018-06-06 15:54:57 +00:00

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))