From: Pierre d'Herbemont Date: Wed, 26 Mar 2008 09:14:17 +0000 (+0100) Subject: vlc.h: Don't actually put the __attribute__((deprecated)) when the header is used... X-Git-Tag: 0.9.0-test0~1860 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a326574d0db885d845dcdc39d2e844a7d1f38663;p=vlc vlc.h: Don't actually put the __attribute__((deprecated)) when the header is used by libvlc. --- diff --git a/include/vlc/vlc.h b/include/vlc/vlc.h index e3d16451d2..95212e4ab3 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 /*****************************************************************************