From 4941decc584615fcbb54881f4d17ea445205d48d Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Thu, 25 Mar 2021 18:20:27 -0700 Subject: [PATCH] microsoft/compiler: Enable dxil_nir.h to be included from C++ Reviewed-by: Bill Kristiansen Acked-by: Michael Tang Part-of: --- src/microsoft/compiler/dxil_nir.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/microsoft/compiler/dxil_nir.h b/src/microsoft/compiler/dxil_nir.h index b94c36ee6c4..6c11d117d78 100644 --- a/src/microsoft/compiler/dxil_nir.h +++ b/src/microsoft/compiler/dxil_nir.h @@ -28,6 +28,10 @@ #include "nir.h" #include "nir_builder.h" +#ifdef __cplusplus +extern "C" { +#endif + bool dxil_nir_lower_8bit_conv(nir_shader *shader); bool dxil_nir_lower_16bit_conv(nir_shader *shader); bool dxil_nir_lower_x2b(nir_shader *shader); @@ -47,4 +51,8 @@ build_load_ubo_dxil(nir_builder *b, nir_ssa_def *buffer, nir_ssa_def *offset, unsigned num_components, unsigned bit_size); +#ifdef __cplusplus +} +#endif + #endif /* DXIL_NIR_H */