[vlc-commits] vlc_common: GCC enumerator attributes are only available since gcc 6

Steve Lhomme git at videolan.org
Mon Aug 7 15:25:13 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Aug  7 13:22:31 2017 +0200| [edbb0399b322ac3822d8bd1901828efa2f65da7b] | committer: Hugo Beauzée-Luyssen

vlc_common: GCC enumerator attributes are only available since gcc 6

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 include/vlc_common.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index d9cee53b37..78c5db1304 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



More information about the vlc-commits mailing list