Browse Source

[master] followed c99/c++11 standard for the variadic macro RECORD_DECL() (#3853)

Francis Dupont 10 years ago
parent
commit
08ed4f6424
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcp/std_option_defs.h

+ 1 - 1
src/lib/dhcp/std_option_defs.h

@@ -30,7 +30,7 @@ namespace {
 /// @param name name of the array being declared.
 /// @param types data types of fields that belong to the record.
 #ifndef RECORD_DECL
-#define RECORD_DECL(name, types...) const OptionDataType name[] = { types }
+#define RECORD_DECL(name, ...) const OptionDataType name[] = { __VA_ARGS__ }
 #endif
 
 /// @brief A pair of values: one pointing to the array holding types of