diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.h b/src/gallium/auxiliary/gallivm/lp_bld_printf.h index ede93cc834e..298b4033f08 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_printf.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.h @@ -28,6 +28,9 @@ #ifndef LP_BLD_PRINTF_H #define LP_BLD_PRINTF_H +#ifdef __cplusplus +extern "C" { +#endif #include "pipe/p_compiler.h" #include "lp_bld.h" @@ -43,5 +46,9 @@ lp_build_print_value(struct gallivm_state *gallivm, const char *msg, LLVMValueRef value); +#ifdef __cplusplus +} +#endif + #endif