aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src/plugins/media/include
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-11-13 20:52:11 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-11-13 20:52:11 +0000
commit3aa01070d819daa3ae566814fd2291c941af40ee (patch)
tree68f84cfc691bb291e5c20ea4cde382ec2e9cb957 /mediaplugin/src/plugins/media/include
parentebd2e9bcc3529a53d21255203786fa9eca012228 (diff)
downloadusdx-3aa01070d819daa3ae566814fd2291c941af40ee.tar.gz
usdx-3aa01070d819daa3ae566814fd2291c941af40ee.tar.xz
usdx-3aa01070d819daa3ae566814fd2291c941af40ee.zip
DLL_EXPORT already defined by libtool during configure in mingw (-DDLL_EXPORT) -> rename to DECLSPEC_EXPORT
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2737 b956fd51-792f-4845-bead-9b4dfca2ff2c
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;