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>
This commit is contained in:
Emil Velikov
2017-03-20 16:04:08 +00:00
parent b0bfb5f89c
commit b08aee305e
31 changed files with 48 additions and 23 deletions

View File

@@ -21,7 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#pragma once
#ifndef GLSL_UNIFORM_INITIALIZER_UTILS_H
#define GLSL_UNIFORM_INITIALIZER_UTILS_H
#include "program/prog_parameter.h"
#include "ir.h"
@@ -46,3 +47,5 @@ extern void
verify_data(gl_constant_value *storage, unsigned storage_array_size,
ir_constant *val, unsigned red_zone_size,
unsigned int boolean_true);
#endif /* GLSL_UNIFORM_INITIALIZER_UTILS_H */