[vlc-commits] plugin: fix macro namespace

Rémi Denis-Courmont git at videolan.org
Thu Jul 18 21:26:35 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 18 19:44:20 2019 +0300| [cd7498d0a8592cfeb18c9a6ae1231ded1774b3e9] | committer: Rémi Denis-Courmont

plugin: fix macro namespace

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd7498d0a8592cfeb18c9a6ae1231ded1774b3e9
---

 include/vlc_plugin.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 9f363eda57..ee9aa18e96 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -210,11 +210,11 @@ enum vlc_module_properties
 /* If the module is built-in, then we need to define foo_InitModule instead
  * of InitModule. Same for Activate- and DeactivateModule. */
 #ifdef __PLUGIN__
-# define __VLC_SYMBOL( symbol  ) CONCATENATE( symbol, MODULE_SYMBOL )
+# define VLC_SYMBOL(symbol) CONCATENATE(symbol, MODULE_SYMBOL)
 # define VLC_MODULE_NAME_HIDDEN_SYMBOL \
     const char vlc_module_name[] = MODULE_STRING;
 #else
-# define __VLC_SYMBOL( symbol )  CONCATENATE( symbol, MODULE_NAME )
+# define VLC_SYMBOL(symbol)  CONCATENATE(symbol, MODULE_NAME)
 # define VLC_MODULE_NAME_HIDDEN_SYMBOL
 #endif
 
@@ -253,9 +253,9 @@ EXTERN_SYMBOL typedef int (*vlc_set_cb) (void *, void *, int, ...);
  */
 #define vlc_module_begin() \
 EXTERN_SYMBOL DLL_SYMBOL \
-int CDECL_SYMBOL __VLC_SYMBOL(vlc_entry) (vlc_set_cb, void *); \
+int CDECL_SYMBOL VLC_SYMBOL(vlc_entry)(vlc_set_cb, void *); \
 EXTERN_SYMBOL DLL_SYMBOL \
-int CDECL_SYMBOL __VLC_SYMBOL(vlc_entry) (vlc_set_cb vlc_set, void *opaque) \
+int CDECL_SYMBOL VLC_SYMBOL(vlc_entry)(vlc_set_cb vlc_set, void *opaque) \
 { \
     module_t *module; \
     module_config_t *config = NULL; \
@@ -498,9 +498,9 @@ VLC_METADATA_EXPORTS
 /* Meta data plugin exports */
 #define VLC_META_EXPORT( name, value ) \
     EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \
-    __VLC_SYMBOL(vlc_entry_ ## name) (void); \
+    VLC_SYMBOL(vlc_entry_ ## name)(void); \
     EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \
-    __VLC_SYMBOL(vlc_entry_ ## name) (void) \
+    VLC_SYMBOL(vlc_entry_ ## name)(void) \
     { \
          return value; \
     }



More information about the vlc-commits mailing list