]> git.sesse.net Git - vlc/commitdiff
VLC_PUBLIC_API needs extern "C" on windows/c++ too.
authorPierre d'Herbemont <pdherbemont@free.fr>
Tue, 18 Mar 2008 23:42:00 +0000 (00:42 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Tue, 18 Mar 2008 23:42:00 +0000 (00:42 +0100)
include/vlc_common.h

index 79d6dd750d65556bab0d9631f1e508a444b9029f..1384f90416d246b0e8c6686fdabfc9bc8b580039 100644 (file)
@@ -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