nir/builtin: Add extern "C" guards to nir_builtin_builder.h

That way it can also be included from a C++ source.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
Neil Roberts
2019-10-11 16:01:30 +02:00
parent 9eaeedd54b
commit 0832845dc6
+8
View File
@@ -27,6 +27,10 @@
#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 */