Commit 8021e36d authored by Paolo Borelli's avatar Paolo Borelli Committed by Ignacio Casal Quinteiro

Tentative fix for win32 build warning

parent 2a4b1a10
......@@ -41,7 +41,7 @@ static GModule *libgedit_dll = NULL;
* point is to find and load libgedit.dll.
*/
static void
gedit_w32_load_private_dll (GType *type)
gedit_w32_load_private_dll (void)
{
gchar *dllpath;
gchar *prefix;
......@@ -69,13 +69,7 @@ gedit_w32_load_private_dll (GType *type)
libgedit_dll = g_module_open ("libgedit.dll", 0);
}
if (libgedit_dll != NULL)
{
/* Now that we did everything we could to make the DLL available, we can
* implicitly call the *_get_type() function from it.
*/
*type = GEDIT_TYPE_APP_WIN32;
}
return (libgedit_dll != NULL)
}
static void
......@@ -100,7 +94,13 @@ main (int argc, char *argv[])
type = GEDIT_TYPE_APP_OSX;
#else
#ifdef G_OS_WIN32
gedit_w32_load_private_dll (&type);
if (!gedit_w32_load_private_dll ())
{
g_printerr ("Failed to load libgedit DLL\n")
return 1;
}
type = GEDIT_TYPE_APP_WIN32;
#else
type = GEDIT_TYPE_APP_X11;
#endif
......
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