/* If the module is built-in, then we need to define foo_InitModule instead
* of InitModule. Same for Activate- and DeactivateModule. */
-#if defined (HAVE_DYNAMIC_PLUGINS) && !defined (__LIBVLC__)
+#if defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__)
# define E_( function ) CONCATENATE( function, MODULE_SYMBOL )
# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_SYMBOL )
#else
#define add_requirement( cap ) \
if (vlc_module_set (p_module, VLC_MODULE_CPU_REQUIREMENT, \
- (void *)(CPU_CAPABILITY_##cap))) goto error
+ (void *)(intptr_t)(CPU_CAPABILITY_##cap))) goto error
#define add_shortcut( shortcut ) \
if (vlc_module_set (p_submodule, VLC_MODULE_SHORTCUT, (void*)(shortcut))) \
#define set_capability( cap, score ) \
if (vlc_module_set (p_submodule, VLC_MODULE_CAPABILITY, (void *)(cap)) \
- || vlc_module_set (p_submodule, VLC_MODULE_SCORE, (void *)(score))) \
+ || vlc_module_set (p_submodule, VLC_MODULE_SCORE, \
+ (void *)(intptr_t)(score))) \
goto error
#define set_program( program ) \