mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-21 03:11:13 +00:00
Only include gmodule and define dyn loading macros if LADSPA is enabled
This commit is contained in:
parent
2f19e80d38
commit
ce8fa7c387
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue