mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-08 20:22:30 +01:00
win32: Fix undefined symbol for builds with -with-plugin=false
Windows builds without plugins can use notification-windows.c, which uses module_load in its notification_backend_init function. module_load was previously guarded with a USE_PLUGIN ifdef, but we do need this function for Windows builds even if plugins are disabled. This fixes a critical build issue for all Windows builds without plugins.
This commit is contained in:
parent
c2cdf0d2a1
commit
82a424fc8a
@ -355,7 +355,8 @@ plugin_kill_all (void)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_PLUGIN
|
||||
#if defined(USE_PLUGIN) || defined(WIN32)
|
||||
/* used for loading plugins, and in fe-gtk/notifications/notification-windows.c */
|
||||
|
||||
GModule *
|
||||
module_load (char *filename)
|
||||
@ -384,6 +385,10 @@ module_load (char *filename)
|
||||
return handle;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef USE_PLUGIN
|
||||
|
||||
/* load a plugin from a filename. Returns: NULL-success or an error string */
|
||||
|
||||
char *
|
||||
|
Loading…
Reference in New Issue
Block a user