[FFmpeg-cvslog] avutil: add av_noreturn
Michael Niedermayer
git at videolan.org
Fri Nov 11 04:36:39 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 11 04:24:00 2011 +0100| [6d4731e1f7d3aef5d3e1c0bbe71974d89529d76f] | committer: Michael Niedermayer
avutil: add av_noreturn
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d4731e1f7d3aef5d3e1c0bbe71974d89529d76f
---
libavutil/attributes.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 3f761ef..0a6fda1 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))
More information about the ffmpeg-cvslog
mailing list