mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-06 12:39:54 +00:00
Some *nix and macOS compiler fixes.
This commit is contained in:
parent
3e1165dd87
commit
452d0a43f5
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user