projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f80041
)
p_compiler: add replacement va_copy
author
Luca Barbieri
<luca@luca-barbieri.com>
Fri, 20 Aug 2010 22:39:31 +0000
(
00:39
+0200)
committer
Luca Barbieri
<luca@luca-barbieri.com>
Fri, 20 Aug 2010 22:51:29 +0000
(
00:51
+0200)
This might technically not always be correct, because va_copy might
be a function, or a system might not have va_copy, and not work with
assignment.
Hopefully this is never the case.
Without configure tests, it doesn't seem possible to do better.
src/gallium/include/pipe/p_compiler.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_compiler.h
b/src/gallium/include/pipe/p_compiler.h
index 1fa3ec8300ab7d688397b0ee748d52652c0d55fe..0a5be43f6bf0e6472d76aa50f49de6b6914359bd 100644
(file)
--- a/
src/gallium/include/pipe/p_compiler.h
+++ b/
src/gallium/include/pipe/p_compiler.h
@@
-79,6
+79,14
@@
typedef unsigned char boolean;
#define FALSE false
#endif
+#ifndef va_copy
+#ifdef __va_copy
+#define va_copy(dest, src) __va_copy((dest), (src))
+#else
+#define va_copy(dest, src) (dest) = (src)
+#endif
+#endif
+
/* Function inlining */
#ifndef INLINE
# ifdef __cplusplus