[FFmpeg-cvslog] r21378 - trunk/libavutil/avutil.h

mru subversion
Fri Jan 22 04:25:22 CET 2010


Author: mru
Date: Fri Jan 22 04:25:21 2010
New Revision: 21378

Log:
Add an AV_PRAGMA() macro for constructing _Pragma() directives

The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.

Modified:
   trunk/libavutil/avutil.h

Modified: trunk/libavutil/avutil.h
==============================================================================
--- trunk/libavutil/avutil.h	Fri Jan 22 04:25:11 2010	(r21377)
+++ trunk/libavutil/avutil.h	Fri Jan 22 04:25:21 2010	(r21378)
@@ -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



More information about the ffmpeg-cvslog mailing list