[vlc-devel] commit: vlc.h: Don't actually put the __attribute__((deprecated)) when the header is used by libvlc. (Pierre d'Herbemont )

git version control git at videolan.org
Wed Mar 26 17:36:12 CET 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Mar 26 10:14:17 2008 +0100| [a326574d0db885d845dcdc39d2e844a7d1f38663]

vlc.h: Don't actually put the __attribute__((deprecated)) when the header is used by libvlc.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a326574d0db885d845dcdc39d2e844a7d1f38663
---

 include/vlc/vlc.h |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/include/vlc/vlc.h b/include/vlc/vlc.h
index e3d1645..95212e4 100644
--- a/include/vlc/vlc.h
+++ b/include/vlc/vlc.h
@@ -169,11 +169,16 @@ struct vlc_list_t
  *****************************************************************************/
 
 #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
 
 /*****************************************************************************




More information about the vlc-devel mailing list