From 51f4a4bee10ebd6f526fccc4c02356c08be81747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Francis=20Ratt=C3=A9-Boulianne?= Date: Wed, 4 Mar 2020 11:13:39 -0500 Subject: [PATCH] gallium/util: Wrap suballoc.h into extern C MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Emil Velikov Reviewed-by: Marek Olšák Part-of: --- 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