]> git.sesse.net Git - vlc/commitdiff
include/vlc/* cannot depend on config.h, hence cannot use HAVE_* macros
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 17 May 2007 13:35:24 +0000 (13:35 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 17 May 2007 13:35:24 +0000 (13:35 +0000)
include/vlc/vlc.h

index a42a17d8e5665e5f147abf187b14808f4f75260d..5e9ad076b24262c3d3cfff0b6bf5832be4dfa1db 100644 (file)
 #ifndef _VLC_VLC_H
 #define _VLC_VLC_H 1
 
-# ifdef __cplusplus
-extern "C" {
-# endif
-
 /*****************************************************************************
  * Our custom types
  *****************************************************************************/
@@ -160,12 +156,14 @@ struct vlc_list_t
  *****************************************************************************/
 #if defined(WIN32) && defined(DLL_EXPORT)
 #  define VLC_PUBLIC_API extern __declspec(dllexport)
-#elif HAVE_ATTRIBUTE_VISIBILITY
-#  define VLC_PUBLIC_API extern __attribute__((visibility("default")))
 #else
-#  define VLC_PUBLIC_API extern
+#  define VLC_PUBLIC_API
 #endif
 
+# ifdef __cplusplus
+extern "C" {
+# endif
+
 /*****************************************************************************
  * Exported libvlc API
  *****************************************************************************/