/* Explanation:
*
- * if HAVE_DYNAMIC_PLUGINS is NOT set, we will need:
+ * if linking a module statically, we will need:
* #define MODULE_FUNC( zog ) module_foo_zog
*
* this can't easily be done with the C preprocessor, thus a few ugly hacks.
#if defined( __PLUGIN__ ) && ( defined( WIN32 ) || defined( UNDER_CE ) )
# define DLL_SYMBOL __declspec(dllexport)
# define CDECL_SYMBOL __cdecl
-#elif defined (HAVE_ATTRIBUTE_VISIBILITY)
-# define DLL_SYMBOL __attribute__((visibility("default")))
-# define CDECL_SYMBOL
#else
# define DLL_SYMBOL
# define CDECL_SYMBOL
goto error
#define add_shortcut( shortcut ) \
- if (vlc_module_set (p_submodule, VLC_MODULE_SHORTCUT, (int)(shortcut))) \
+ if (vlc_module_set (p_submodule, VLC_MODULE_SHORTCUT, \
+ (const char *)(shortcut))) \
goto error
#define set_shortname( shortname ) \
goto error
#define set_capability( cap, score ) \
- if (vlc_module_set (p_submodule, VLC_MODULE_CAPABILITY, (int)(cap)) \
+ if (vlc_module_set (p_submodule, VLC_MODULE_CAPABILITY, \
+ (const char *)(cap)) \
|| vlc_module_set (p_submodule, VLC_MODULE_SCORE, (int)(score))) \
goto error