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