aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-04-02 01:03:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-04-02 01:03:27 +0000
commit4ed39eedca0eaee0b0dea9ea5de7506bd3dc8842 (patch)
treeb54eeb1a87ae14dc3cf1a65b1e82f3848710abbf /libavutil/attributes.h
parent458b062d61a92d725cde9363941747a1c6d1e575 (diff)
downloadffmpeg-4ed39eedca0eaee0b0dea9ea5de7506bd3dc8842.tar.gz
av_builtin_constant_p()
Originally committed as revision 22770 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 0580c98468..1208bc0c72 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -104,4 +104,10 @@
#endif
#endif
+#ifdef __GNUC__
+# define av_builtin_constant_p __builtin_constant_p
+#else
+# define av_builtin_constant_p(x) 0
+#endif
+
#endif /* AVUTIL_ATTRIBUTES_H */