From: Jason Ekstrand Date: Thu, 25 Jun 2015 02:01:10 +0000 (-0700) Subject: nir/spirv: Make the header file C++ safe X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bc0a1ad98fe23238e0eb819ede4aabd6c2a27e2;p=mesa.git nir/spirv: Make the header file C++ safe --- 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_ */