$OpenBSD: patch-src_sound_mididevices_music_fluidsynth_mididevice_cpp,v 1.2 2019/06/26 07:12:04 solene Exp $

Index: src/sound/mididevices/music_fluidsynth_mididevice.cpp
--- src/sound/mididevices/music_fluidsynth_mididevice.cpp.orig
+++ src/sound/mididevices/music_fluidsynth_mididevice.cpp
@@ -50,12 +50,11 @@
 // do this without including windows.h for this one single prototype
 extern "C" unsigned __stdcall GetSystemDirectoryA(char *lpBuffer, unsigned uSize);
 
+#ifndef FLUIDSYNTHLIB1
 #ifndef _M_X64
 #define FLUIDSYNTHLIB1	"fluidsynth.dll"
-#define FLUIDSYNTHLIB2	"libfluidsynth.dll"
 #else
 #define FLUIDSYNTHLIB1	"fluidsynth64.dll"
-#define FLUIDSYNTHLIB2	"libfluidsynth64.dll"
 #endif
 #else
 #include <dlfcn.h>
@@ -65,6 +64,15 @@ extern "C" unsigned __stdcall GetSystemDirectoryA(char
 #else // !__APPLE__
 #define FLUIDSYNTHLIB1	"libfluidsynth.so.1"
 #endif // __APPLE__
+#endif
+#endif
+
+#ifndef FLUIDSYNTHLIB2
+#ifndef _M_X64
+#define FLUIDSYNTHLIB2	"libfluidsynth.dll"
+#else
+#define FLUIDSYNTHLIB2	"libfluidsynth64.dll"
+#endif
 #endif
 
 #define FLUID_REVERB_DEFAULT_ROOMSIZE 0.2f
