Commit edbb0399 authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

vlc_common: GCC enumerator attributes are only available since gcc 6

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 60ec2eb9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment