Mercurial > libavutil.hg
changeset 821:ee9a0af0b0db libavutil
Add an AV_PRAGMA() macro for constructing _Pragma() directives
The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.
author | mru |
---|---|
date | Fri, 22 Jan 2010 03:25:21 +0000 |
parents | e89d42c1effa |
children | a1680eca3e52 |
files | avutil.h |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avutil.h Fri Jan 22 03:25:11 2010 +0000 +++ b/avutil.h Fri Jan 22 03:25:21 2010 +0000 @@ -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