Add correct library names for macOS

This commit is contained in:
Cacodemon345
2021-08-26 14:27:52 +06:00
parent 766f321d4d
commit 426df48151
5 changed files with 14 additions and 1 deletions

View File

@@ -225,6 +225,8 @@ void* fluidsynth_init(const device_t *info)
/* Try loading the DLL. */
#ifdef _WIN32
fluidsynth_handle = dynld_module("libfluidsynth.dll", fluidsynth_imports);
#elif defined __APPLE__
fluidsynth_handle = dynld_module("libfluidsynth.dylib", fluidsynth_imports);
#else
fluidsynth_handle = dynld_module("libfluidsynth.so", fluidsynth_imports);
#endif