From 7526e2b02716760a6ed05b6f35f7e5a67cebdb87 Mon Sep 17 00:00:00 2001 From: cbdev Date: Thu, 1 Jul 2021 23:07:17 +0200 Subject: Route log output to frontend --- core/plugin.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'core/plugin.c') 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 #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 + #include + #define MM_API __attribute__((visibility ("default"))) #endif #define BACKEND_NAME "core/pl" -- cgit v1.2.3