[Crosstoolchain-logs] [device-tree-compiler] 137/198: Work around MSVC limitations
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:07:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.
commit f9e91a48ba509e77aadcb5349885e1777ef17372
Author: Andrei Errapart <andrei at errapartengineering.com>
Date: Thu Jun 19 21:07:48 2014 +1000
Work around MSVC limitations
1) No variadic macros in the form "args..."; this is a GCC extension.
2) No empty struct initializers. In any case, there is very little to win:
{ } vs. { 0 }.
Signed-off-by: Andrei Errapart <andrei at errapartengineering.com>
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
dtc.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dtc.h b/dtc.h
index 20de073..56212c8 100644
--- a/dtc.h
+++ b/dtc.h
@@ -38,9 +38,9 @@
#include "util.h"
#ifdef DEBUG
-#define debug(fmt,args...) printf(fmt, ##args)
+#define debug(...) printf(__VA_ARGS__)
#else
-#define debug(fmt,args...)
+#define debug(...)
#endif
@@ -88,7 +88,7 @@ struct data {
};
-#define empty_data ((struct data){ /* all .members = 0 or NULL */ })
+#define empty_data ((struct data){ 0 /* all .members = 0 or NULL */ })
#define for_each_marker(m) \
for (; (m); (m) = (m)->next)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list