nir: support feeding state to nir_lower_clip_[vg]s
[mesa.git] / src / compiler / nir / nir_builtin_builder.h
index 22115ada2412aa0680f17fafb45da682f159b317..2ec300c4474f5896e20bb413e7d2ab447522523c 100644 (file)
 #include "util/u_math.h"
 #include "nir/nir_builder.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Functions are sorted alphabetically with removed type and "fast" prefix.
  * Definitions for functions in the C file come first.
@@ -212,4 +216,8 @@ nir_select(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y, nir_ssa_def *s)
    return nir_bcsel(b, nir_ieq(b, s, nir_imm_intN_t(b, 0, s->bit_size)), x, y);
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* NIR_BUILTIN_BUILDER_H */