summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-09-09 17:02:52 -0600
committerBrian Paul <[email protected]>2013-09-09 17:52:44 -0600
commit395b9410860371a64d6b5f2d50679f29eb41729e (patch)
treee85a1c741118582fa2483c08fdd3bd3fe86ab19a /src/glsl
parent1ddb56d16088b3fa57c77c9a562ca2ea62c9ce65 (diff)
glsl: fix variadic macro for MSVC
MSVC doesn't accept the rest... syntax. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/builtin_functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index eca41aacefb..5d8f171b9a8 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -1935,9 +1935,9 @@ builtin_builder::new_sig(const glsl_type *return_type,
return sig;
}
-#define MAKE_SIG(return_type, avail, rest...) \
+#define MAKE_SIG(return_type, avail, ...) \
ir_function_signature *sig = \
- new_sig(return_type, avail, rest); \
+ new_sig(return_type, avail, __VA_ARGS__); \
ir_factory body(&sig->body, mem_ctx);
ir_function_signature *