To enable linking functions declared in lp_bld_printf.h file with C++,
we need to add appropriate macros to the header.
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3470>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3470>
#ifndef LP_BLD_PRINTF_H
#define LP_BLD_PRINTF_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "pipe/p_compiler.h"
#include "lp_bld.h"
const char *msg,
LLVMValueRef value);
+#ifdef __cplusplus
+}
+#endif
+
#endif