diff options
author | Måns Rullgård <mans@mansr.com> | 2010-01-22 03:25:21 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-01-22 03:25:21 +0000 |
commit | d408b77a3a1a2841ae18ecc1922b3b3465f77e5c (patch) | |
tree | e461b1912209d7eeec8b038adc3af66f9bc6e3e6 /libavutil | |
parent | c67278098def4438fc587744f5df1c147bc95dc3 (diff) | |
download | ffmpeg-d408b77a3a1a2841ae18ecc1922b3b3465f77e5c.tar.gz |
Add an AV_PRAGMA() macro for constructing _Pragma() directives
The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.
Originally committed as revision 21378 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/avutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index f2d2b07574..a3cc93fa2a 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -29,6 +29,7 @@ #define AV_STRINGIFY(s) AV_TOSTRING(s) #define AV_TOSTRING(s) #s +#define AV_PRAGMA(s) _Pragma(#s) #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c) #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c |