| Index: tools/json_to_struct/json_to_struct.py
|
| diff --git a/tools/json_to_struct/json_to_struct.py b/tools/json_to_struct/json_to_struct.py
|
| index 38b6341091c287a45030eb574b3ebbd75530df8c..2e9c83c726fb23a28a232cfd24312efdac4b841f 100755
|
| --- a/tools/json_to_struct/json_to_struct.py
|
| +++ b/tools/json_to_struct/json_to_struct.py
|
| @@ -99,14 +99,14 @@ def _GenerateH(basepath, fileroot, head, namespace, schema, description):
|
| with open(os.path.join(basepath, h_filename), 'w') as f:
|
| f.write(head)
|
|
|
| - f.write('#include <cstddef>\n')
|
| - f.write('\n')
|
| -
|
| header_guard = _GenerateHeaderGuard(h_filename)
|
| f.write('#ifndef %s\n' % header_guard)
|
| f.write('#define %s\n' % header_guard)
|
| f.write('\n')
|
|
|
| + f.write('#include <cstddef>\n')
|
| + f.write('\n')
|
| +
|
| for header in schema.get('headers', []):
|
| f.write('#include "%s"\n' % header)
|
| f.write('\n')
|
|
|