Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
#ifndef VK_UTIL_H
#define VK_UTIL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* common inlines and macros for vulkan drivers */
#include <vulkan/vulkan.h>
return NULL;
if (a->data != NULL)
- p = a->data + (*a->filled_len) * elem_size;
+ p = (uint8_t *)a->data + (*a->filled_len) * elem_size;
*a->filled_len += 1;
#define VK_ENUM_OFFSET(__enum) \
((__enum) >= VK_EXT_OFFSET ? ((__enum) % 1000) : (__enum))
+#ifdef __cplusplus
+}
+#endif
+
#endif /* VK_UTIL_H */