diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-09-29 15:29:03 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-09-29 15:39:40 -0400 |
commit | 0678403d9c7218138c2bc5cbf1bd92cc4d450adc (patch) | |
tree | e0dbd058bc63ec028cd5ecca412759d410c36f82 /games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp | |
parent | d2542bf926bbae3289282f0866f312104abcfb09 (diff) | |
download | freebsd-ports-0678403d9c7218138c2bc5cbf1bd92cc4d450adc.tar.gz freebsd-ports-0678403d9c7218138c2bc5cbf1bd92cc4d450adc.tar.zst freebsd-ports-0678403d9c7218138c2bc5cbf1bd92cc4d450adc.zip |
Bunch of fixes
Diffstat (limited to 'games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp')
-rw-r--r-- | games/multimc/files/patch-launcher_minecraft_launch_ExtractNatives.cpp | 17 |
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)) |