"wrappers/vscode:/vscode.git/clone" did not exist on "889baef66ec4184ab74f8a486d3147b1307014e0"
Commit 37743d27 authored by xantares's avatar xantares
Browse files

fix mingw build

parent 3c328f39
......@@ -179,13 +179,13 @@ static HMODULE loadOneLibrary(const string& file) {
static void initializePlugins(vector<HMODULE>& plugins) {
for (int i = 0; i < (int) plugins.size(); i++) {
void (*init)();
*(void **)(&init) = GetProcAddress(plugins[i], "registerPlatforms");
*(void **)(&init) = (void *) GetProcAddress(plugins[i], "registerPlatforms");
if (init != NULL)
(*init)();
}
for (int i = 0; i < (int) plugins.size(); i++) {
void (*init)();
*(void **)(&init) = GetProcAddress(plugins[i], "registerKernelFactories");
*(void **)(&init) = (void *) GetProcAddress(plugins[i], "registerKernelFactories");
if (init != NULL)
(*init)();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment