The file is meant to be included via nir_builder.h. Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- src/glsl/nir/nir_builder_opcodes_h.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/src/glsl/nir/nir_builder_opcodes_h.py b/src/glsl/nir/nir_builder_opcodes_h.py index e27206e..d85d434 100644 --- a/src/glsl/nir/nir_builder_opcodes_h.py +++ b/src/glsl/nir/nir_builder_opcodes_h.py @@ -26,6 +26,10 @@ template = """\ #ifndef _NIR_BUILDER_OPCODES_ #define _NIR_BUILDER_OPCODES_ +#ifndef NIR_BUILDER_H +#error "Must not be included directly. Include nir_builder.h instead" +#endif /* NIR_BUILDER_H */ + % for name, opcode in sorted(opcodes.iteritems()): ALU${opcode.num_inputs}(${name}); % endfor -- 2.5.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev