From 83394ab2861b7f10b986ef4bf7d82e4c53916afa Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Tue, 22 Sep 2020 21:40:29 +0900 Subject: [PATCH] Define FLUIDSYNTH_API on OS/2 Previously, CMake on OS/2 exported all the symbols unconditionally. Now it exports necessary symbols only. As a result, it's necessary to define FLUIDSYNTH_API correctly. Addresses #678 --- include/fluidsynth.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fluidsynth.cmake b/include/fluidsynth.cmake index 021b1cda8..654a4fd17 100644 --- a/include/fluidsynth.cmake +++ b/include/fluidsynth.cmake @@ -43,6 +43,9 @@ extern "C" { #elif defined(MACOS9) #define FLUIDSYNTH_API __declspec(export) +#elif defined(__OS2__) +#define FLUIDSYNTH_API __declspec(dllexport) + #elif defined(__GNUC__) #define FLUIDSYNTH_API __attribute__ ((visibility ("default")))