From 1f4268b53e8d72917a504c4cebc1c2419a92b27c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 24 Jun 2024 13:38:32 +1000 Subject: [PATCH] gallivm: make lp_bld_coro.h c++ include safe. Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_coro.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_coro.h b/src/gallium/auxiliary/gallivm/lp_bld_coro.h index 2fbaecc3152..5421d0926ca 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_coro.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_coro.h @@ -31,6 +31,10 @@ #include "gallivm/lp_bld.h" #include "gallivm/lp_bld_intr.h" +#ifdef __cplusplus +extern "C" { +#endif + struct gallivm_state; LLVMValueRef lp_build_coro_id(struct gallivm_state *gallivm); @@ -84,4 +88,8 @@ static inline void lp_build_coro_add_presplit(LLVMValueRef coro) #endif } +#ifdef __cplusplus +} +#endif + #endif