From 6d4731e1f7d3aef5d3e1c0bbe71974d89529d76f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 11 Nov 2011 04:24:00 +0100 Subject: [PATCH] avutil: add av_noreturn Signed-off-by: Michael Niedermayer --- libavutil/attributes.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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))