*****************************************************************************/
#ifndef VLC_DEPRECATED_API
-#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
+# ifdef __LIBVLC__
+/* Avoid unuseful warnings from libvlc with our deprecated APIs */
+# define VLC_DEPRECATED_API VLC_PUBLIC_API
+# else /* __LIBVLC__ */
+# if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
# define VLC_DEPRECATED_API VLC_PUBLIC_API __attribute__((deprecated))
-#else
+# else
# define VLC_DEPRECATED_API VLC_PUBLIC_API
-#endif
+# endif
+# endif /* __LIBVLC__ */
#endif
/*****************************************************************************