nir/spirv: Make the header file C++ safe

This commit is contained in:
Jason Ekstrand 2015-06-24 19:01:10 -07:00
parent 88d02a1b27
commit 1bc0a1ad98
1 changed files with 8 additions and 0 deletions

View File

@ -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_ */