gallium/util: add some extern "C" guards

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13285>
This commit is contained in:
Marek Olšák
2021-09-13 23:28:04 -04:00
committed by Marge Bot
parent b62b2fa4b9
commit 8a42ea69a6
2 changed files with 16 additions and 0 deletions
@@ -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 */
@@ -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