From 02b46fa70addd49ce1b7c0a04e56c33963f0e1c2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 17 Apr 2016 12:19:59 +0200 Subject: Fix vstsdk compilation on linux (thanks falktx). --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 1745714..92f2a81 100644 --- a/configure.ac +++ b/configure.ac @@ -174,6 +174,15 @@ AS_IF( [test "x$enable_vst" = "xyes"], [enable_vst=yes VST_CPPFLAGS="-I$with_vst_sources -D__int64='long long int'" + + # Set up platform specific workarounds for the VST SDK + AS_CASE([$host_os], + [darwin*], [ ], + [linux*|*bsd*], [VST_CPPFLAGS="$VST_CPPFLAGS -D__cdecl="], + [mingw*|windows*|winnt|cygwin], [ ], + AC_MSG_ERROR([Your platform is not currently supported]) + ) + VST_SOURCE_PATH="$with_vst_sources" AC_SUBST(VST_SOURCE_PATH) AC_SUBST(VST_CPPFLAGS) -- cgit v1.2.3