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

Mark exported symbols with default visibility on GCC 4

parent 085558eb
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#if defined (WIN32) && defined (DLL_EXPORT) #if defined (WIN32) && defined (DLL_EXPORT)
# define VLC_PUBLIC_API __declspec(dllexport) # define VLC_PUBLIC_API __declspec(dllexport)
#elif defined (__GNUC__) && (__GNUC__ >= 4)
# define VLC_PUBLIC_API __attribute__((visibility("default")))
#else #else
# define VLC_PUBLIC_API # define VLC_PUBLIC_API
#endif #endif
......
...@@ -115,10 +115,10 @@ ...@@ -115,10 +115,10 @@
# define LIBVLC_EXTERN # define LIBVLC_EXTERN
#endif #endif
#if defined (__GNUC__) && (__GNUC__ >= 4) #if defined (WIN32) && defined (DLL_EXPORT)
# define LIBVLC_EXPORT __attribute__((visibility("default")))
#elif defined (WIN32) && defined (DLL_EXPORT)
# define LIBVLC_EXPORT __declspec(dllexport) # define LIBVLC_EXPORT __declspec(dllexport)
#elif defined (__GNUC__) && (__GNUC__ >= 4)
# define LIBVLC_EXPORT __attribute__((visibility("default")))
#else #else
# define LIBVLC_EXPORT # define LIBVLC_EXPORT
#endif #endif
......
...@@ -140,12 +140,19 @@ enum vlc_module_properties ...@@ -140,12 +140,19 @@ enum vlc_module_properties
# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME )
#endif #endif
#if defined( __PLUGIN__ ) && ( defined( WIN32 ) || defined( UNDER_CE ) ) #define CDECL_SYMBOL
#if defined (__PLUGIN__)
# if defined (WIN32)
# define DLL_SYMBOL __declspec(dllexport) # define DLL_SYMBOL __declspec(dllexport)
# undef CDECL_SYMBOL
# define CDECL_SYMBOL __cdecl # define CDECL_SYMBOL __cdecl
# elif defined (__GNUC__) && (__GNUC__ >= 4)
# define DLL_SYMBOL __attribute__((visibility("default")))
# else
# define DLL_SYMBOL
# endif
#else #else
# define DLL_SYMBOL # define DLL_SYMBOL
# define CDECL_SYMBOL
#endif #endif
#if defined( __cplusplus ) #if defined( __cplusplus )
......
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