next attepmt to fix building with fluidsynth < 2.2 (#465)

This commit is contained in:
Fabian Greffrath 2022-02-25 13:22:57 +01:00 committed by GitHub
parent 28fbc5ad30
commit 1c3e70fee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,11 +19,10 @@
#include "fluidsynth.h"
#if (FLUIDSYNTH_VERSION_MAJOR < 2 || (FLUIDSYNTH_VERSION_MAJOR >=2 && FLUIDSYNTH_VERSION_MINOR < 2))
#if defined(_MSC_VER) && (_MSC_VER < 1800)
typedef __int64 fluid_long_long_t;
#else
typedef long long fluid_long_long_t;
#endif
typedef int fluid_int_t;
typedef long fluid_long_long_t;
#else
typedef fluid_long_long_t fluid_int_t;
#endif
#include "SDL.h"
@ -72,7 +71,7 @@ static void *FL_sfopen(const char *path)
return instream;
}
static int FL_sfread(void *buf, fluid_long_long_t count, void *handle)
static int FL_sfread(void *buf, fluid_int_t count, void *handle)
{
if (mem_fread(buf, sizeof(byte), count, (MEMFILE *)handle) == count)
{