aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/plugin.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-07-01 23:07:17 +0200
committercbdev <cb@cbcdn.com>2021-07-01 23:07:17 +0200
commit7526e2b02716760a6ed05b6f35f7e5a67cebdb87 (patch)
tree2b072388046334e22a3017f0936e21463872e981 /core/plugin.c
parentdfa4f916b62cbd20054ef7a677359e60eade14d1 (diff)
downloadmidimonster-7526e2b02716760a6ed05b6f35f7e5a67cebdb87.tar.gz
midimonster-7526e2b02716760a6ed05b6f35f7e5a67cebdb87.tar.bz2
midimonster-7526e2b02716760a6ed05b6f35f7e5a67cebdb87.zip
Route log output to frontend
Diffstat (limited to 'core/plugin.c')
-rw-r--r--core/plugin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/plugin.c b/core/plugin.c
index ec32760..cd85059 100644
--- a/core/plugin.c
+++ b/core/plugin.c
@@ -7,12 +7,14 @@
#include <dirent.h>
#include "portability.h"
#ifdef _WIN32
-#define dlclose FreeLibrary
-#define dlsym GetProcAddress
-#define dlerror() "Failed"
-#define dlopen(lib,ig) LoadLibrary(lib)
+ #define dlclose FreeLibrary
+ #define dlsym GetProcAddress
+ #define dlerror() "Failed"
+ #define dlopen(lib,ig) LoadLibrary(lib)
+ #define MM_API __attribute__((dllexport))
#else
-#include <dlfcn.h>
+ #include <dlfcn.h>
+ #define MM_API __attribute__((visibility ("default")))
#endif
#define BACKEND_NAME "core/pl"