Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2017-01-22 18:37:32 +0300
committerGitHub <noreply@github.com>2017-01-22 18:37:32 +0300
commit98349a1b332f22337ff8b02e68e344db15b4f6e1 (patch)
treed2e12b3f6ff3436a4b976b3e3e72273d7669e828 /plugins/sto
parent12b9c9b9845058f0f6caf7ac603b1d82d67c41cb (diff)
parent6096b74a1c42cfeaca9cde5df76a21fc3174f167 (diff)
Merge PR #2755: plugins: Fix visibility, warnings and errors when compiled with MinGW
Diffstat (limited to 'plugins/sto')
-rw-r--r--plugins/sto/sto.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/sto/sto.cpp b/plugins/sto/sto.cpp
index a6beff2b7..76e2c5421 100644
--- a/plugins/sto/sto.cpp
+++ b/plugins/sto/sto.cpp
@@ -3,7 +3,8 @@
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
-#include "../mumble_plugin_win32_32bit.h"
+#include "../mumble_plugin_win32_32bit.h" // Include standard plugin header.
+#include <limits> // Include limits header for the "u8" function.
static procptr32_t identptr, contextptr, posptr;
@@ -70,7 +71,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
}
static int trylock(const std::multimap<std::wstring, unsigned long long int> &pids) {
- identptr = contextptr = posptr = NULL;
+ identptr = contextptr = posptr = 0;
if (! initialize(pids, L"GameClient.exe"))
return false;