summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-01-02 15:52:28 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-01-02 15:52:28 +0300
commitf410c68074a2858d1572b6f60b45fed04b4e327f (patch)
treebc61198428b351f9edeaaf84a200d39c6997c9f0
parent146cd2bc1cf6831cf5c99b7abb3de754eebf4a7b (diff)
mumble: mxe crosscompilling patch (just to not foget)
-rw-r--r--media-sound/mumble/files/crosscompiling.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/media-sound/mumble/files/crosscompiling.patch b/media-sound/mumble/files/crosscompiling.patch
new file mode 100644
index 0000000..c666f0b
--- /dev/null
+++ b/media-sound/mumble/files/crosscompiling.patch
@@ -0,0 +1,22 @@
+diff --git a/src/mumble/main.cpp b/src/mumble/main.cpp
+index 7062ede6..3becca72 100644
+--- a/src/mumble/main.cpp
++++ b/src/mumble/main.cpp
+@@ -662,7 +662,7 @@ int main(int argc, char **argv) {
+ }
+
+ #if defined(Q_OS_WIN) && defined(QT_NO_DEBUG)
+-extern void qWinMain(HINSTANCE, HINSTANCE, LPSTR, int, int &, QVector<char *> &);
++//extern void qWinMain(HINSTANCE, HINSTANCE, LPSTR, int, int &, QVector<char *> &);
+
+ extern "C" __declspec(dllexport) int MumbleMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdArg, int cmdShow) {
+ Q_UNUSED(cmdArg);
+@@ -672,7 +672,7 @@ extern "C" __declspec(dllexport) int MumbleMain(HINSTANCE instance, HINSTANCE pr
+
+ // qWinMain takes argv as a reference.
+ QVector<char *> argv;
+- qWinMain(instance, prevInstance, cmdParam.data(), cmdShow, argc, argv);
++// qWinMain(instance, prevInstance, cmdParam.data(), cmdShow, argc, argv);
+
+ int result = main(argc, argv.data());
+ return result;