[vlc-devel] [PATCH 2/3] vlc_plugin.h: Declare vlc_module_name as an EXTERN_SYMBOL

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Dec 10 15:43:10 CET 2020


We don't want the symbol to be mangled when building C++
---
 include/vlc_plugin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 88317c88db..d136224444 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -215,7 +215,7 @@ enum vlc_module_properties
 #ifdef __PLUGIN__
 # define VLC_SYMBOL(symbol) symbol
 # define VLC_MODULE_NAME_HIDDEN_SYMBOL \
-    const char vlc_module_name[] = MODULE_STRING;
+    EXTERN_SYMBOL const char vlc_module_name[] = MODULE_STRING;
 #else
 # define VLC_SYMBOL(symbol)  CONCATENATE(symbol, MODULE_NAME)
 # define VLC_MODULE_NAME_HIDDEN_SYMBOL
-- 
2.29.2



More information about the vlc-devel mailing list