aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-05-13 17:53:17 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-05-13 17:53:17 +0000
commit001faf3269541f0231482e0fccc846f62f8930b2 (patch)
treea5a7b0143f3fd9d71e42eb03c4967f8763ec3501 /target-i386
parent4cfce484c5d7e514c23689f3194055b5463d6054 (diff)
Replace gcc variadic macro extension with C99 version
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/ops_sse.h4
-rw-r--r--target-i386/translate.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/target-i386/ops_sse.h b/target-i386/ops_sse.h
index 99d483a287..35ac2117fd 100644
--- a/target-i386/ops_sse.h
+++ b/target-i386/ops_sse.h
@@ -20,7 +20,7 @@
*/
#if SHIFT == 0
#define Reg MMXReg
-#define XMM_ONLY(x...)
+#define XMM_ONLY(...)
#define B(n) MMX_B(n)
#define W(n) MMX_W(n)
#define L(n) MMX_L(n)
@@ -28,7 +28,7 @@
#define SUFFIX _mmx
#else
#define Reg XMMReg
-#define XMM_ONLY(x...) x
+#define XMM_ONLY(...) __VA_ARGS__
#define B(n) XMM_B(n)
#define W(n) XMM_W(n)
#define L(n) XMM_L(n)
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 8df3ea439c..3933697ef1 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -42,7 +42,7 @@
#ifdef TARGET_X86_64
#define X86_64_ONLY(x) x
-#define X86_64_DEF(x...) x
+#define X86_64_DEF(...) __VA_ARGS__
#define CODE64(s) ((s)->code64)
#define REX_X(s) ((s)->rex_x)
#define REX_B(s) ((s)->rex_b)
@@ -52,7 +52,7 @@
#endif
#else
#define X86_64_ONLY(x) NULL
-#define X86_64_DEF(x...)
+#define X86_64_DEF(...)
#define CODE64(s) 0
#define REX_X(s) 0
#define REX_B(s) 0