[lumped builds] Add include guards (#pragma once) to header files that did not have...
authorAras Pranckevicius <aras@unity3d.com>
Wed, 10 May 2017 13:58:38 +0000 (16:58 +0300)
committerAras Pranckevicius <aras@unity3d.com>
Wed, 10 May 2017 13:58:38 +0000 (16:58 +0300)
commit23d3c712bc35d470e2b675213dd8916ad000f226
tree25a1dd0a80dbfb43b76ec4908920e0887d0b9a94
parent8e204b2d677c258ee64510ee7e1363371a8f5ce8
[lumped builds] Add include guards (#pragma once) to header files that did not have any.

The codebase seems to use both “#pragma once“ approach, and “#ifndef / #define” approach,
so I picked pragma once as that one is less typing & less brittle.

When glslang is built with some other build system and lumped/unity builds are used,
without the include guards some headers would get included multiple times, leading to duplicate
declaration errors.
SPIRV/GlslangToSpv.h
SPIRV/doc.h
glslang/MachineIndependent/LiveTraverser.h
glslang/MachineIndependent/RemoveTree.h
glslang/MachineIndependent/ScanContext.h
glslang/MachineIndependent/gl_types.h
glslang/MachineIndependent/propagateNoContraction.h