Only include gmodule and define dyn loading macros if LADSPA is enabled

This commit is contained in:
Marcus Weseloh 2017-11-20 20:13:25 +01:00
parent 2f19e80d38
commit ce8fa7c387

View file

@ -37,9 +37,11 @@
#define _FLUID_SYS_H
#include <glib.h>
#include <gmodule.h>
#include "fluidsynth_priv.h"
#ifdef LADSPA
#include <gmodule.h>
#endif
/**
* Macro used for safely accessing a message from a GError and using a default
@ -321,7 +323,9 @@ void delete_fluid_thread(fluid_thread_t* thread);
void fluid_thread_self_set_prio (int prio_level);
int fluid_thread_join(fluid_thread_t* thread);
/* Dynamic Module Loading */
/* Dynamic Module Loading, currently only used by LADSPA subsystem */
#ifdef LADSPA
typedef GModule fluid_module_t;
#define fluid_module_open(_name) g_module_open((_name), G_MODULE_BIND_LOCAL)
@ -330,6 +334,8 @@ typedef GModule fluid_module_t;
#define fluid_module_name(_mod) g_module_name(_mod)
#define fluid_module_symbol(_mod, _name, _ptr) g_module_symbol((_mod), (_name), (_ptr))
#endif /* LADSPA */
/* Sockets and I/O */
fluid_istream_t fluid_get_stdin (void);