summaryrefslogtreecommitdiffstats
path: root/games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp
blob: eb49ebac93c6d2ee1f706cba1d86a8f05079e1c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))