From 8a42ea69a69ffc7264345b37add2360486fb2515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 13 Sep 2021 23:28:04 -0400 Subject: [PATCH] gallium/util: add some extern "C" guards Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/auxiliary/util/u_async_debug.h | 8 ++++++++ src/gallium/auxiliary/util/u_live_shader_cache.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/gallium/auxiliary/util/u_async_debug.h b/src/gallium/auxiliary/util/u_async_debug.h index b192a01f99b..5f27d21d294 100644 --- a/src/gallium/auxiliary/util/u_async_debug.h +++ b/src/gallium/auxiliary/util/u_async_debug.h @@ -37,6 +37,10 @@ #include "util/u_debug.h" #include "util/simple_mtx.h" +#ifdef __cplusplus +extern "C" { +#endif + struct util_debug_message { unsigned *id; enum pipe_debug_type type; @@ -71,4 +75,8 @@ u_async_debug_drain(struct util_async_debug_callback *adbg, _u_async_debug_drain(adbg, dst); } +#ifdef __cplusplus +} +#endif + #endif /* UTIL_ASYNC_DEBUG_H */ diff --git a/src/gallium/auxiliary/util/u_live_shader_cache.h b/src/gallium/auxiliary/util/u_live_shader_cache.h index b6e6e32c76e..99ed5ec9789 100644 --- a/src/gallium/auxiliary/util/u_live_shader_cache.h +++ b/src/gallium/auxiliary/util/u_live_shader_cache.h @@ -52,6 +52,10 @@ #include "util/simple_mtx.h" #include "pipe/p_state.h" +#ifdef __cplusplus +extern "C" { +#endif + struct util_live_shader_cache { simple_mtx_t lock; struct hash_table *hashtable; @@ -88,4 +92,8 @@ util_shader_reference(struct pipe_context *ctx, struct util_live_shader_cache *cache, void **dst, void *src); +#ifdef __cplusplus +} +#endif + #endif