include: fix typedefs
Use what was in the upstream header. The switch of XGL_SIZE to size_t
generates quite some warnings and is fixed.
diff --git a/tools/glave/scripts/code_gen.py b/tools/glave/scripts/code_gen.py
index 6fa0c97..9b9aa70 100644
--- a/tools/glave/scripts/code_gen.py
+++ b/tools/glave/scripts/code_gen.py
@@ -420,7 +420,9 @@
print_type = "lu"
elif 'UINT8' in struct_member['type']:
print_type = "hu"
- elif True in [ui_str in struct_member['type'] for ui_str in ['UINT', '_SIZE', '_FLAGS', '_SAMPLE_MASK']]:
+ elif '_SIZE' in struct_member['type']:
+ print_type = "zu"
+ elif True in [ui_str in struct_member['type'] for ui_str in ['UINT', '_FLAGS', '_SAMPLE_MASK']]:
print_type = "u"
elif 'INT' in struct_member['type']:
print_type = "i"