summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2020-03-04 11:13:39 -0500
committerMarge Bot <eric+marge@anholt.net>2020-11-10 15:37:07 +0000
commit51f4a4bee10ebd6f526fccc4c02356c08be81747 (patch)
treefdb1fbf53096e49a37eb966a454c2b5d297d8ad1 /src/gallium/auxiliary/util
parentf4ff66d75f529639030747782245a52c0ac50632 (diff)
gallium/util: Wrap suballoc.h into extern C
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_suballoc.h8
1 files changed, 8 insertions, 0 deletions
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