summaryrefslogtreecommitdiff
path: root/audio/mixeng_template.h
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2012-05-18 12:08:14 +0100
committermalc <av1474@comtv.ru>2012-05-18 15:19:28 +0400
commita28853871d6ef5ec4afe810a43fdde859dfdaa7e (patch)
tree1099988b06daccb6c48ec6fb2c21ce3c20250fe6 /audio/mixeng_template.h
parentace2e4dad70d23631a7944bff7255009234961ce (diff)
downloadqemu-a28853871d6ef5ec4afe810a43fdde859dfdaa7e.tar.gz
audio: split IN_T into two separate constants
Split IN_T into BSIZE and ITYPE, to avoid expansion if the OS has defined macros for the intX_t and uintX_t types. The IN_T constant is then defined in mixeng_template.h so it can be used by the functions/macros on this header file. This change has been tested successfully under Debian Linux and NetBSD 6.0BETA. Cc: Vassili Karpov (malc) <av1474@comtv.ru> Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/mixeng_template.h')
-rw-r--r--audio/mixeng_template.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/mixeng_template.h b/audio/mixeng_template.h
index e644c231ad..30849a62a1 100644
--- a/audio/mixeng_template.h
+++ b/audio/mixeng_template.h
@@ -31,7 +31,8 @@
#define HALF (IN_MAX >> 1)
#endif
-#define ET glue (ENDIAN_CONVERSION, glue (_, IN_T))
+#define ET glue (ENDIAN_CONVERSION, glue (glue (glue (_, ITYPE), BSIZE), _t))
+#define IN_T glue (glue (ITYPE, BSIZE), _t)
#ifdef FLOAT_MIXENG
static mixeng_real inline glue (conv_, ET) (IN_T v)
@@ -150,3 +151,4 @@ static void glue (glue (clip_, ET), _from_mono)
#undef ET
#undef HALF
+#undef IN_T