From 00016b425134b3e1b3c8f01ac74b1474c04c7328 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Wed, 3 Nov 2021 10:22:56 -0700 Subject: [PATCH] u_threaded_context: Support including from C++ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Mike Blumenkrantz Reviewed-by: Marek Olšák Reviewed By: Bill Kristiansen Part-of: --- src/gallium/auxiliary/util/u_threaded_context.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/util/u_threaded_context.h b/src/gallium/auxiliary/util/u_threaded_context.h index ec7438c8e2f..17bdb61bd77 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.h +++ b/src/gallium/auxiliary/util/u_threaded_context.h @@ -202,6 +202,10 @@ #include "util/u_thread.h" #include "util/slab.h" +#ifdef __cplusplus +extern "C" { +#endif + struct threaded_context; struct tc_unflushed_batch_token; @@ -608,4 +612,8 @@ tc_buffer_disable_cpu_storage(struct pipe_resource *buf) } } +#ifdef __cplusplus +} +#endif + #endif