]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] followed c99/c++11 standard for the variadic macro RECORD_DECL() (#3853)
authorFrancis Dupont <fdupont@isc.org>
Sat, 16 May 2015 10:01:22 +0000 (12:01 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 16 May 2015 10:01:22 +0000 (12:01 +0200)
src/lib/dhcp/std_option_defs.h

index 10835e2a598e0c85dc57ac8995a935fd410a834c..69fabbb06538de9521dd09132539b643fa91178a 100644 (file)
@@ -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