$OpenBSD: patch-src_sound_mididevices_music_fluidsynth_mididevice_cpp,v 1.1.1.1 2019/02/06 09:32:21 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
@@ -49,12 +49,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>
@@ -64,6 +63,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
