X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_modules_macros.h;h=761a3081bde6936eb4b5009cd02fb9fb8bc57c6b;hb=80def97f15e46bcf4aab4a246e7b5f0acdbb77c4;hp=7eb378a4b4a33cb9c5367658a3b7522f9318686a;hpb=7ca5e9c1aadc09bfd8cf5569e47396651b4591b7;p=vlc diff --git a/include/vlc_modules_macros.h b/include/vlc_modules_macros.h index 7eb378a4b4..761a3081bd 100644 --- a/include/vlc_modules_macros.h +++ b/include/vlc_modules_macros.h @@ -41,7 +41,7 @@ * if user has #defined MODULE_NAME foo, then we will need: * #define MODULE_STRING "foo" * - * and, if __BUILTIN__ is set, we will also need: + * and, if HAVE_DYNAMIC_PLUGINS is NOT set, we will also need: * #define MODULE_FUNC( zog ) module_foo_zog * * this can't easily be done with the C preprocessor, thus a few ugly hacks. @@ -56,12 +56,12 @@ /* If the module is built-in, then we need to define foo_InitModule instead * of InitModule. Same for Activate- and DeactivateModule. */ -#if defined( __BUILTIN__ ) -# define E_( function ) CONCATENATE( function, MODULE_NAME ) -# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) -#elif defined( __PLUGIN__ ) +#if defined (HAVE_DYNAMIC_PLUGINS) # define E_( function ) CONCATENATE( function, MODULE_SYMBOL ) # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_SYMBOL ) +#else +# define E_( function ) CONCATENATE( function, MODULE_NAME ) +# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) #endif #if defined( __PLUGIN__ ) && ( defined( WIN32 ) || defined( UNDER_CE ) )