]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/attributes.h
avformat/avformat: Constify AVFormatContext.*_codec pointers
[ffmpeg] / libavutil / attributes.h
index ced108aa2c75afdf467f91a3faa1cb05af6e9726..5cb9fe345288e1e5a892a454cc6fbc0ae7883cf5 100644 (file)
 #    define AV_GCC_VERSION_AT_MOST(x,y)  0
 #endif
 
+#ifdef __has_builtin
+#    define AV_HAS_BUILTIN(x) __has_builtin(x)
+#else
+#    define AV_HAS_BUILTIN(x) 0
+#endif
+
 #ifndef av_always_inline
 #if AV_GCC_VERSION_AT_LEAST(3,1)
 #    define av_always_inline __attribute__((always_inline)) inline