Browse Source

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@errapartengineering.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Andrei Errapart 11 years ago committed by David Gibson
parent
commit
f9e91a48ba
  1. 6
      dtc.h

6
dtc.h

@ -38,9 +38,9 @@ @@ -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 { @@ -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)

Loading…
Cancel
Save