summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingfeng Yang <lfy@google.com>2022-01-27 12:31:02 -0800
committerLingfeng Yang <lfy@google.com>2022-01-27 12:31:41 -0800
commita21002a6542a6314cbb6ff549e526daca30a96fc (patch)
tree4a8897722bcff3d92ae57063628cd16543e410a2
parent8b6974654dbd6bbfe8a106f04b16c5ef79ffd47a (diff)
downloadgfxstream-protocols-a21002a6542a6314cbb6ff549e526daca30a96fc.tar.gz
Add cstring to codegen scripts (host, qemu)
cstring seems to be needed in guest code now, but it wasn't included in codegen scripts. Change-Id: I1de6a82e1c615bb8929222d3067b7dafe88312c4
-rw-r--r--registry/vulkan/xml/cerealgenerator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/registry/vulkan/xml/cerealgenerator.py b/registry/vulkan/xml/cerealgenerator.py
index 3fe37b5d..f7f9c3e6 100644
--- a/registry/vulkan/xml/cerealgenerator.py
+++ b/registry/vulkan/xml/cerealgenerator.py
@@ -195,6 +195,7 @@ class IOStream;
#include "goldfish_vk_private_defs.h"
#include <log/log.h>
+#include <cstring>
// Stuff we are not going to use but if included,
// will cause compile errors. These are Android Vulkan
@@ -328,6 +329,8 @@ using DlSymFunc = void* (void*, const char*);
commonCerealImplIncludesGuest = """
#include "goldfish_vk_extension_structs_guest.h"
#include "goldfish_vk_private_defs.h"
+
+#include <cstring>
"""
countingIncludes = """
#include "vk_platform_compat.h"