From edbb0399b322ac3822d8bd1901828efa2f65da7b Mon Sep 17 00:00:00 2001 From: Steve Lhomme <robUx4@videolabs.io> Date: Mon, 7 Aug 2017 13:22:31 +0200 Subject: [PATCH] vlc_common: GCC enumerator attributes are only available since gcc 6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr> --- include/vlc_common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/vlc_common.h b/include/vlc_common.h index d9cee53b37ad..78c5db13047b 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -83,6 +83,11 @@ /* Function attributes for compiler warnings */ #ifdef __GNUC__ # define VLC_DEPRECATED __attribute__((deprecated)) +# if VLC_GCC_VERSION(6,0) +# define VLC_DEPRECATED_ENUM __attribute__((deprecated)) +# else +# define VLC_DEPRECATED_ENUM +# endif # if defined( _WIN32 ) # define VLC_FORMAT(x,y) __attribute__ ((format(gnu_printf,x,y))) @@ -95,6 +100,7 @@ #else # define VLC_DEPRECATED +# define VLC_DEPRECATED_ENUM # define VLC_FORMAT(x,y) # define VLC_FORMAT_ARG(x) # define VLC_MALLOC -- GitLab