dsdlc: Fixed deoendency include order

This commit is contained in:
Pavel Kirienko
2014-08-24 16:31:17 +04:00
parent 5bfa1999f4
commit 75153eb643
@@ -173,7 +173,7 @@ def generate_one_type(template_expander, t):
return type_output_filename(t)
if t.category == t.CATEGORY_ARRAY:
return detect_include(t.value_type)
return set(filter(None, [detect_include(x.type) for x in fields]))
return list(sorted(set(filter(None, [detect_include(x.type) for x in fields]))))
if t.kind == t.KIND_MESSAGE:
t.cpp_includes = fields_includes(t.fields)