glsl: consistently use ifndef guards over pragma once
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Mar 2017 16:04:08 +0000 (16:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 16:55:22 +0000 (16:55 +0000)
commitb08aee305ea0caf5035932b26b8fc75782b49160
tree8407cdfaebf01f4caaf07e5759ec0371223c1bf1
parentb0bfb5f89c6d5673d81c356ec793fc75cd9e8332
glsl: consistently use ifndef guards over pragma once

Through the glsl headers we had an odd mix of guards be that
"ifndef", "pragma once" neither or both.

Simplify things by using the more common ones (ifndef) and annotating
all the sources, barring the generated builting header -
builtin_int64.h.

The final header - udivmod64.h - is [seemingly] unused and on its way
out (patch purge it is on the mailing list).

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Vedran Miletić <vedran@miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
31 files changed:
src/compiler/glsl/ast.h
src/compiler/glsl/blob.h
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl/glsl_symbol_table.h
src/compiler/glsl/glsl_to_nir.h
src/compiler/glsl/ir.h
src/compiler/glsl/ir_array_refcount.h
src/compiler/glsl/ir_basic_block.h
src/compiler/glsl/ir_builder_print_visitor.h
src/compiler/glsl/ir_expression_flattening.h
src/compiler/glsl/ir_function_inlining.h
src/compiler/glsl/ir_hierarchical_visitor.h
src/compiler/glsl/ir_optimization.h
src/compiler/glsl/ir_print_visitor.h
src/compiler/glsl/ir_reader.h
src/compiler/glsl/ir_rvalue_visitor.h
src/compiler/glsl/ir_uniform.h
src/compiler/glsl/ir_variable_refcount.h
src/compiler/glsl/ir_visitor.h
src/compiler/glsl/link_uniform_block_active_visitor.h
src/compiler/glsl/link_varyings.h
src/compiler/glsl/linker.h
src/compiler/glsl/list.h
src/compiler/glsl/loop_analysis.h
src/compiler/glsl/lower_buffer_access.h
src/compiler/glsl/program.h
src/compiler/glsl/s_expression.h
src/compiler/glsl/shader_cache.h
src/compiler/glsl/standalone_scaffolding.h
src/compiler/glsl/test_optpass.h
src/compiler/glsl/tests/uniform_initializer_utils.h