[vlc-devel] commit: Mark VLC_PUBLIC_API as extern "C" when using C++. (Pierre d' Herbemont )
git version control
git at videolan.org
Wed Mar 19 00:05:21 CET 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Tue Mar 18 23:15:30 2008 +0100| [879e3eb226c7df84db6868b25964830664f92ebb]
Mark VLC_PUBLIC_API as extern "C" when using C++.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=879e3eb226c7df84db6868b25964830664f92ebb
---
include/vlc_common.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index bc179a0..79d6dd7 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -468,12 +468,12 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#else
# ifdef __cplusplus
# ifdef HAVE_ATTRIBUTE_VISIBILITY
-# define VLC_PUBLIC_API __attribute__((visibility("default")))
-# define VLC_PRIVATE_API __attribute__((visibility("default")))
+# define VLC_PUBLIC_API extern "C" __attribute__((visibility("default")))
+# define VLC_PRIVATE_API extern "C" __attribute__((visibility("default")))
# define VLC_EXPORT( type, name, args ) extern "C" __attribute__((visibility("default"))) type name args
# define VLC_INTERNAL( type, name, args ) extern "C" __attribute__((visibility("hidden"))) type name args
# else
-# define VLC_PUBLIC_API
+# define VLC_PUBLIC_API extern "C"
# define VLC_EXPORT( type, name, args ) extern "C" type name args
# define VLC_INTERNAL( type, name, args ) extern "C" type name args
# endif
More information about the vlc-devel
mailing list