"vscode:/vscode.git/clone" did not exist on "59484a6fb482160c54d6d89d7324dc66c1d6fc79"
Commit 019a98b6 authored by peastman's avatar peastman
Browse files

Merge pull request #900 from xantares/patch-7

fix mingw build
parents 503fbee7 37743d27
......@@ -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