From 452d0a43f58a374adc77b7f67d703d164566ac37 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 14 Jan 2017 11:56:27 -0800 Subject: [PATCH] Some *nix and macOS compiler fixes. --- src/contrib/nullout/nullout_plugin.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/contrib/nullout/nullout_plugin.cpp b/src/contrib/nullout/nullout_plugin.cpp index b54846504..7ec4efb0c 100644 --- a/src/contrib/nullout/nullout_plugin.cpp +++ b/src/contrib/nullout/nullout_plugin.cpp @@ -38,6 +38,12 @@ #include #include "NullOut.h" +#ifdef WIN32 + #define DLLEXPORT __declspec(dllexport) +#else + #define DLLEXPORT +#endif + class NullPlugin : public musik::core::sdk::IPlugin { public: virtual void Destroy() { delete this; } @@ -53,10 +59,10 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv } #endif -extern "C" __declspec(dllexport) musik::core::sdk::IPlugin* GetPlugin() { +extern "C" DLLEXPORT musik::core::sdk::IPlugin* GetPlugin() { return new NullPlugin(); } -extern "C" __declspec(dllexport) musik::core::sdk::IOutput* GetAudioOutput() { +extern "C" DLLEXPORT musik::core::sdk::IOutput* GetAudioOutput() { return new NullOut(); }