[vlc-devel] commit: VLC_PUBLIC_API needs extern "C" on windows/c++ too. (Pierre d' Herbemont )
git version control
git at videolan.org
Wed Mar 19 00:42:16 CET 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Mar 19 00:42:00 2008 +0100| [4af174fcd8b06d416eb499a61f56029a2d48bd90]
VLC_PUBLIC_API needs extern "C" on windows/c++ too.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4af174fcd8b06d416eb499a61f56029a2d48bd90
---
include/vlc_common.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 79d6dd7..1384f90 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -455,8 +455,8 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#if defined (WIN32) && defined (DLL_EXPORT)
# ifdef __cplusplus
-# define VLC_PUBLIC_API __declspec(dllexport)
-# define VLC_PRIVATE_API __declspec(dllexport)
+# define VLC_PUBLIC_API extern "C" __declspec(dllexport)
+# define VLC_PRIVATE_API extern "C" __declspec(dllexport)
# define VLC_EXPORT( type, name, args ) extern "C" __declspec(dllexport) type name args
# define VLC_INTERNAL( type, name, args ) extern "C" type name args
# else
More information about the vlc-devel
mailing list