From e0b732e506c74328bc48dd6e595dd849bbfc4395 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Wed, 31 Aug 2022 12:22:56 -0400 Subject: [PATCH] gallium/vl: Allow vl_zscan.h to be included from C++ Reviewed-by: Giancarlo Devich Reviewed-by: Ruijing Dong Part-of: --- src/gallium/auxiliary/vl/vl_zscan.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_zscan.h b/src/gallium/auxiliary/vl/vl_zscan.h index 292152e873e..978503d589f 100644 --- a/src/gallium/auxiliary/vl/vl_zscan.h +++ b/src/gallium/auxiliary/vl/vl_zscan.h @@ -31,6 +31,10 @@ #include "pipe/p_compiler.h" #include "pipe/p_state.h" +#ifdef __cplusplus +extern "C" { +#endif + /* * shader based zscan and quantification * expect usage of vl_vertex_buffers as a todo list @@ -100,4 +104,8 @@ vl_zscan_upload_quant(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, void vl_zscan_render(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, unsigned num_instances); +#ifdef __cplusplus +} +#endif + #endif