projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ddb56d
)
glsl: fix variadic macro for MSVC
author
Brian Paul
<brianp@vmware.com>
Mon, 9 Sep 2013 23:02:52 +0000
(17:02 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/glsl/builtin_functions.cpp
b/src/glsl/builtin_functions.cpp
index eca41aacefbee8f831da764e16c82a8a31496504..5d8f171b9a86188026f45ecf13c1cdeb1c1dcfe7 100644
(file)
--- 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 *