aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/helper_file_generator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/helper_file_generator.py b/scripts/helper_file_generator.py
index ca9ffc5b..ea4800d0 100644
--- a/scripts/helper_file_generator.py
+++ b/scripts/helper_file_generator.py
@@ -723,6 +723,12 @@ class HelperFileOutputGenerator(OutputGenerator):
safe_struct_helper_source = '\n'
safe_struct_helper_source += '#include "vk_safe_struct.h"\n'
safe_struct_helper_source += '#include <string.h>\n'
+ safe_struct_helper_source += '#ifdef VK_USE_PLATFORM_ANDROID_KHR\n'
+ safe_struct_helper_source += '#if __ANDROID_API__ < __ANDROID_API_O__\n'
+ safe_struct_helper_source += 'struct AHardwareBuffer {};\n'
+ safe_struct_helper_source += '#endif\n'
+ safe_struct_helper_source += '#endif\n'
+
safe_struct_helper_source += '\n'
safe_struct_helper_source += self.GenerateSafeStructSource()
return safe_struct_helper_source