nir/spirv: Make the header file C++ safe
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Jun 2015 02:01:10 +0000 (19:01 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Jun 2015 02:01:10 +0000 (19:01 -0700)
src/glsl/nir/nir_spirv.h

index 789d30cd672be4051a73a332a9b77a214db304e1..3254f10a88d36f0ecc277ad618e751735140df83 100644 (file)
 
 #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_ */