]> git.sesse.net Git - vlc/commitdiff
Fix linking on gcc, breaks everything else
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 17 May 2007 19:15:24 +0000 (19:15 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 17 May 2007 19:15:24 +0000 (19:15 +0000)
include/vlc/vlc.h

index 5e9ad076b24262c3d3cfff0b6bf5832be4dfa1db..2f79ed6e4bbf47e2e80802401063bf28ae529c79 100644 (file)
 #ifndef _VLC_VLC_H
 #define _VLC_VLC_H 1
 
+# ifdef __cplusplus
+extern "C" {
+# endif
+
 /*****************************************************************************
  * Our custom types
  *****************************************************************************/
@@ -157,13 +161,9 @@ struct vlc_list_t
 #if defined(WIN32) && defined(DLL_EXPORT)
 #  define VLC_PUBLIC_API extern __declspec(dllexport)
 #else
-#  define VLC_PUBLIC_API
+#  define VLC_PUBLIC_API extern __attribute__((visibility("default")))
 #endif
 
-# ifdef __cplusplus
-extern "C" {
-# endif
-
 /*****************************************************************************
  * Exported libvlc API
  *****************************************************************************/