Mesa (master): gallium/util: Wrap suballoc.h into extern C
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 10 15:54:51 UTC 2020
Module: Mesa
Branch: master
Commit: 51f4a4bee10ebd6f526fccc4c02356c08be81747
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=51f4a4bee10ebd6f526fccc4c02356c08be81747
Author: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Date: Wed Mar 4 11:13:39 2020 -0500
gallium/util: Wrap suballoc.h into extern C
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>
---
src/gallium/auxiliary/util/u_suballoc.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_suballoc.h b/src/gallium/auxiliary/util/u_suballoc.h
index e35382f0437..de4905d06e5 100644
--- a/src/gallium/auxiliary/util/u_suballoc.h
+++ b/src/gallium/auxiliary/util/u_suballoc.h
@@ -33,6 +33,10 @@
struct u_suballocator;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct u_suballocator *
u_suballocator_create(struct pipe_context *pipe, unsigned size, unsigned bind,
enum pipe_resource_usage usage, unsigned flags,
@@ -46,4 +50,8 @@ u_suballocator_alloc(struct u_suballocator *allocator, unsigned size,
unsigned alignment, unsigned *out_offset,
struct pipe_resource **outbuf);
+#ifdef __cplusplus
+}
+#endif
+
#endif
More information about the mesa-commit
mailing list