diff options
Diffstat (limited to '')
-rw-r--r-- | mediaplugin/src/plugins/media/ffmpeg/ffmpeg_plugin.cpp | 2 | ||||
-rw-r--r-- | mediaplugin/src/plugins/media/include/core/plugin_core.h | 18 |
2 files changed, 9 insertions, 11 deletions
diff --git a/mediaplugin/src/plugins/media/ffmpeg/ffmpeg_plugin.cpp b/mediaplugin/src/plugins/media/ffmpeg/ffmpeg_plugin.cpp index 35451388..01f98595 100644 --- a/mediaplugin/src/plugins/media/ffmpeg/ffmpeg_plugin.cpp +++ b/mediaplugin/src/plugins/media/ffmpeg/ffmpeg_plugin.cpp @@ -31,7 +31,7 @@ MediaCore_FFmpeg *ffmpegCore; -DLL_EXPORT const pluginInfo_t* PLUGIN_CALL Plugin_register(const pluginCore_t *core) { +DECLSPEC_EXPORT const pluginInfo_t* PLUGIN_CALL Plugin_register(const pluginCore_t *core) { pluginInitCore(core); return &pluginInfo; } diff --git a/mediaplugin/src/plugins/media/include/core/plugin_core.h b/mediaplugin/src/plugins/media/include/core/plugin_core.h index e62dd21b..67eca5f7 100644 --- a/mediaplugin/src/plugins/media/include/core/plugin_core.h +++ b/mediaplugin/src/plugins/media/include/core/plugin_core.h @@ -36,17 +36,15 @@ extern "C" { #endif /* declaration for export */ -#ifndef DLL_EXPORT -# if defined(__WIN32__) -# define DLL_EXPORT __declspec(dllexport) +#if defined(__WIN32__) +# define DECLSPEC_EXPORT __declspec(dllexport) +#else +# if defined(__GNUC__) && __GNUC__ >= 4 +# define DECLSPEC_EXPORT __attribute__ ((visibility("default"))) # else -# if defined(__GNUC__) && __GNUC__ >= 4 -# define DLL_EXPORT __attribute__ ((visibility("default"))) -# else -# define DLL_EXPORT -# endif +# define DECLSPEC_EXPORT # endif -#endif /* DLL_EXPORT */ +#endif /* use C calling convention */ #ifndef CDECL @@ -208,7 +206,7 @@ typedef struct pluginInfo_t { // plugin entry function (must be implemented by the plugin) -extern DLL_EXPORT const pluginInfo_t* PLUGIN_CALL Plugin_register(const pluginCore_t *core); +extern DECLSPEC_EXPORT const pluginInfo_t* PLUGIN_CALL Plugin_register(const pluginCore_t *core); // must be provided by the plugin and initialized on plugin initialization extern const pluginCore_t *pluginCore; |