aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-11 04:24:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-11 04:24:00 +0100
commit6d4731e1f7d3aef5d3e1c0bbe71974d89529d76f (patch)
tree9a06f3b00258818a61c977ae4bd1e3afd8403636 /libavutil/attributes.h
parentec3c9a30203b1313683a473b3fa0fe9ceab57421 (diff)
downloadffmpeg-6d4731e1f7d3aef5d3e1c0bbe71974d89529d76f.tar.gz
avutil: add av_noreturn
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 3f761ef679..0a6fda172b 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -40,6 +40,14 @@
#endif
#endif
+#ifndef av_noreturn
+#if AV_GCC_VERSION_AT_LEAST(2,5)
+# define av_noreturn __attribute__((noreturn))
+#else
+# define av_noreturn
+#endif
+#endif
+
#ifndef av_noinline
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define av_noinline __attribute__((noinline))