From 1bc0a1ad98fe23238e0eb819ede4aabd6c2a27e2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 24 Jun 2015 19:01:10 -0700 Subject: [PATCH] nir/spirv: Make the header file C++ safe --- src/glsl/nir/nir_spirv.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/glsl/nir/nir_spirv.h b/src/glsl/nir/nir_spirv.h index 789d30cd672..3254f10a88d 100644 --- a/src/glsl/nir/nir_spirv.h +++ b/src/glsl/nir/nir_spirv.h @@ -32,7 +32,15 @@ #include "nir.h" +#ifdef __cplusplus +extern "C" { +#endif + nir_shader *spirv_to_nir(const uint32_t *words, size_t word_count, const nir_shader_compiler_options *options); +#ifdef __cplusplus +} +#endif + #endif /* _NIR_SPIRV_H_ */ -- 2.30.2