diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2019-08-28 10:27:22 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2019-08-28 10:28:53 +0300 |
commit | 1a95ad8ad11db333c1a559478a60027eee2c33f6 (patch) | |
tree | 40ceb56466cff20fba5b1e52e505f2f8e879e98e | |
parent | 32d69540ea68e8557ec75fe5195eda7f2bf51794 (diff) |
mumble_plugin_main.h: include <cstring> for memset()
The MinGW builds failed with:
In file included from gtasa.cpp:6:0:
../mumble_plugin_main.h: In instantiation of 'T peekProc(const procptr_t&) [with T = unsigned char; procptr_t = long long unsigned int]':
gtasa.cpp:25:59: required from here
../mumble_plugin_main.h:47:9: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
memset(&ret, 0, sizeof(ret));
^
In file included from /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/guiddef.h:154:0,
from /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/winnt.h:635,
from /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/minwindef.h:163,
from /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/windef.h:8,
from /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/windows.h:69,
from ./../mumble_plugin_win32.h:21,
from ../mumble_plugin_main.h:95,
from gtasa.cpp:6:
/usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/string.h:53:18: note: 'void* memset(void*, int, size_t)' declared here, later in the translation unit
void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
^
-rw-r--r-- | plugins/mumble_plugin_main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mumble_plugin_main.h b/plugins/mumble_plugin_main.h index a542471df..830d8f7b6 100644 --- a/plugins/mumble_plugin_main.h +++ b/plugins/mumble_plugin_main.h @@ -17,6 +17,8 @@ #include "mumble_plugin.h" #include "mumble_plugin_win32_internals.h" +#include <cstring> + #ifdef WIN32 static const bool isWin32 = true; #else |