[FFmpeg-devel] [PATCH] Add an AV_PRAGMA() macro for constructing _Pragma() directives
Mans Rullgard
mans
Fri Jan 22 02:51:30 CET 2010
The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.
---
libavutil/avutil.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index f2d2b07..a3cc93f 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
--
1.6.6
More information about the ffmpeg-devel
mailing list