glsl: fix variadic macro for MSVC
authorBrian Paul <brianp@vmware.com>
Mon, 9 Sep 2013 23:02:52 +0000 (17:02 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 9 Sep 2013 23:52:44 +0000 (17:52 -0600)
MSVC doesn't accept the rest... syntax.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp

index eca41aacefbee8f831da764e16c82a8a31496504..5d8f171b9a86188026f45ecf13c1cdeb1c1dcfe7 100644 (file)
@@ -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 *