diff options
author | Emil Velikov <[email protected]> | 2017-03-20 16:04:08 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-22 16:55:22 +0000 |
commit | b08aee305ea0caf5035932b26b8fc75782b49160 (patch) | |
tree | 8407cdfaebf01f4caaf07e5759ec0371223c1bf1 /src/compiler/glsl/glsl_to_nir.h | |
parent | b0bfb5f89c6d5673d81c356ec793fc75cd9e8332 (diff) |
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 <[email protected]>
Acked-by: Vedran Miletić <[email protected]>
Acked-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_to_nir.h')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.h b/src/compiler/glsl/glsl_to_nir.h index c63382ea92d..8e38e0e1c9c 100644 --- a/src/compiler/glsl/glsl_to_nir.h +++ b/src/compiler/glsl/glsl_to_nir.h @@ -25,6 +25,9 @@ * */ +#ifndef GLSL_TO_NIR_H +#define GLSL_TO_NIR_H + #include "compiler/nir/nir.h" #ifdef __cplusplus @@ -40,3 +43,5 @@ nir_shader *glsl_to_nir(const struct gl_shader_program *shader_prog, #ifdef __cplusplus } #endif + +#endif /* GLSL_TO_NIR_H */ |