aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-27 17:38:53 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-27 17:38:53 +0000
commit87fec35d8d64a138adae485796fb00b0b365934b (patch)
treecbdfca435006d48cb886ac5beba826c67abccd89 /libavutil
parent9f72b23c5c4543aa94708b4a04702afdc840c123 (diff)
downloadffmpeg-87fec35d8d64a138adae485796fb00b0b365934b.tar.gz
Add macro AV_JOIN() for joining two tokens into one
Originally committed as revision 21482 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/avutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index a3cc93fa2a..01067e750e 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -29,6 +29,10 @@
#define AV_STRINGIFY(s) AV_TOSTRING(s)
#define AV_TOSTRING(s) #s
+
+#define AV_GLUE(a, b) a ## b
+#define AV_JOIN(a, b) AV_GLUE(a, b)
+
#define AV_PRAGMA(s) _Pragma(#s)
#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)