Commit 7cf7fec3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix linking on gcc, breaks everything else

parent c2ddff0e
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
#ifndef _VLC_VLC_H #ifndef _VLC_VLC_H
#define _VLC_VLC_H 1 #define _VLC_VLC_H 1
# ifdef __cplusplus
extern "C" {
# endif
/***************************************************************************** /*****************************************************************************
* Our custom types * Our custom types
*****************************************************************************/ *****************************************************************************/
...@@ -157,13 +161,9 @@ struct vlc_list_t ...@@ -157,13 +161,9 @@ struct vlc_list_t
#if defined(WIN32) && defined(DLL_EXPORT) #if defined(WIN32) && defined(DLL_EXPORT)
# define VLC_PUBLIC_API extern __declspec(dllexport) # define VLC_PUBLIC_API extern __declspec(dllexport)
#else #else
# define VLC_PUBLIC_API # define VLC_PUBLIC_API extern __attribute__((visibility("default")))
#endif #endif
# ifdef __cplusplus
extern "C" {
# endif
/***************************************************************************** /*****************************************************************************
* Exported libvlc API * Exported libvlc API
*****************************************************************************/ *****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment