summaryrefslogtreecommitdiffstats
path: root/games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp')
-rw-r--r--games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp b/games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp
new file mode 100644
index 0000000..eb49eba
--- /dev/null
+++ b/games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp
@@ -0,0 +1,17 @@
+--- launcher/minecraft/launch/ExtractNatives.cpp.orig 2021-09-08 22:27:46 UTC
++++ launcher/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))