diff options
author | wm4 <wm4@nowhere> | 2012-11-10 16:20:00 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-12 20:10:23 +0100 |
commit | 5afacef0e4d80a77518d65d83947b9f7a2630c34 (patch) | |
tree | 41527cf401adf4fc1a8994d6398db3608bee5b73 /compat | |
parent | a6c4f2646fda50e5661acdb8739d1b54ddb38ede (diff) | |
download | mpv-5afacef0e4d80a77518d65d83947b9f7a2630c34.tar.bz2 mpv-5afacef0e4d80a77518d65d83947b9f7a2630c34.tar.xz |
Add MP_NORETURN and replace av_noreturn uses
av_noreturn is a rather recent addition to libavutil, and defining it
ourselves is trivial and makes playing compatibility games easier.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/compiler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/compiler.h b/compat/compiler.h index c929573dd1..a507cd02c2 100644 --- a/compat/compiler.h +++ b/compat/compiler.h @@ -5,6 +5,8 @@ #ifdef __GNUC__ +#define MP_NORETURN __attribute__((noreturn)) + /** Use gcc attribute to check printf fns. a1 is the 1-based index of * the parameter containing the format, and a2 the index of the first * argument. **/ @@ -19,6 +21,7 @@ #else #define PRINTF_ATTRIBUTE(a1, a2) +#define MP_NORETURN #endif #endif |