aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src/plugins/media/include
diff options
context:
space:
mode:
Diffstat (limited to 'mediaplugin/src/plugins/media/include')
-rw-r--r--mediaplugin/src/plugins/media/include/core/plugin_core.h18
1 files changed, 8 insertions, 10 deletions
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;