Skip to content

Commit

Permalink
Define FLUIDSYNTH_API on OS/2
Browse files Browse the repository at this point in the history
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
  • Loading branch information
komh authored and derselbst committed Sep 24, 2020
1 parent 1cc492f commit 83394ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/fluidsynth.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")))

Expand Down

0 comments on commit 83394ab

Please sign in to comment.