Some *nix and macOS compiler fixes.

This commit is contained in:
casey langen 2017-01-14 11:56:27 -08:00
parent 3e1165dd87
commit 452d0a43f5

View File

@ -38,6 +38,12 @@
#include <core/sdk/IPlugin.h> #include <core/sdk/IPlugin.h>
#include "NullOut.h" #include "NullOut.h"
#ifdef WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT
#endif
class NullPlugin : public musik::core::sdk::IPlugin { class NullPlugin : public musik::core::sdk::IPlugin {
public: public:
virtual void Destroy() { delete this; } virtual void Destroy() { delete this; }
@ -53,10 +59,10 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
} }
#endif #endif
extern "C" __declspec(dllexport) musik::core::sdk::IPlugin* GetPlugin() { extern "C" DLLEXPORT musik::core::sdk::IPlugin* GetPlugin() {
return new NullPlugin(); return new NullPlugin();
} }
extern "C" __declspec(dllexport) musik::core::sdk::IOutput* GetAudioOutput() { extern "C" DLLEXPORT musik::core::sdk::IOutput* GetAudioOutput() {
return new NullOut(); return new NullOut();
} }