From: Pierre d'Herbemont Date: Tue, 18 Mar 2008 23:42:00 +0000 (+0100) Subject: VLC_PUBLIC_API needs extern "C" on windows/c++ too. X-Git-Tag: 0.9.0-test0~2006 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4af174fcd8b06d416eb499a61f56029a2d48bd90;p=vlc VLC_PUBLIC_API needs extern "C" on windows/c++ too. --- diff --git a/include/vlc_common.h b/include/vlc_common.h index 79d6dd750d..1384f90416 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