That way it can also be included from a C++ source.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
#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.
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 */