Merge pull request #355 from carlo-bramini/master

Build fixes and header cleanups.
This commit is contained in:
Tom M 2018-03-25 19:09:52 +02:00 committed by GitHub
commit d76a23c28d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 15 deletions

View file

@ -18,14 +18,8 @@
* 02110-1301, USA
*/
#include "fluid_lash.h"
#include "fluid_synth.h"
#include <unistd.h> /* for usleep() */
#include <sys/types.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#ifdef HAVE_LASH
static void fluid_lash_save (fluid_synth_t * synth);
static void fluid_lash_load (fluid_synth_t * synth, const char * filename);
@ -35,15 +29,11 @@ static void *fluid_lash_run (void * data);
* lash client - this symbol needs to be in the library else
* all clients would need a fluid_lash_client symbol.
*/
#ifdef HAVE_LASH
lash_client_t * fluid_lash_client;
#endif
static pthread_t fluid_lash_thread;
#ifdef HAVE_LASH
fluid_lash_args_t *
fluid_lash_extract_args (int * pargc, char *** pargv)
{

View file

@ -19,13 +19,14 @@
*/
#define INITGUID
#include "fluidsynth_priv.h"
#include "fluid_synth.h"
#include "fluid_sys.h"
#include "fluid_adriver.h"
#include "fluid_settings.h"
#if DSOUND_SUPPORT
#define INITGUID
#include <mmsystem.h>
#include <dsound.h>
@ -368,3 +369,5 @@ char* fluid_win32_error(HRESULT hr) {
}
return s;
}
#endif /* DSOUND_SUPPORT */

View file

@ -106,6 +106,10 @@
#include <io.h>
#endif
#if HAVE_SIGNAL_H
#include <signal.h>
#endif
/** Integer types */
#if HAVE_STDINT_H
#include <stdint.h>