From: Emil Velikov Date: Mon, 20 Mar 2017 16:04:17 +0000 (+0000) Subject: spirv: consistently use ifndef guards over pragma once X-Git-Tag: upstream/17.1.0~1134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b27a883205156d9b5e13b84aebbcc4c679c5d71a;p=platform%2Fupstream%2Fmesa.git spirv: consistently use ifndef guards over pragma once Signed-off-by: Emil Velikov Acked-by: Vedran Miletić Acked-by: Juha-Pekka Heikkila Reviewed-by: Edward O'Callaghan --- diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h index 1a312a9..1779d1c 100644 --- a/src/compiler/spirv/nir_spirv.h +++ b/src/compiler/spirv/nir_spirv.h @@ -25,8 +25,6 @@ * */ -#pragma once - #ifndef _NIR_SPIRV_H_ #define _NIR_SPIRV_H_ diff --git a/src/compiler/spirv/spirv_info.h b/src/compiler/spirv/spirv_info.h index 1700001..81d43ec 100644 --- a/src/compiler/spirv/spirv_info.h +++ b/src/compiler/spirv/spirv_info.h @@ -21,7 +21,12 @@ * IN THE SOFTWARE. */ +#ifndef _SPIRV_INFO_H_ +#define _SPIRV_INFO_H_ + #include "spirv.h" const char *spirv_capability_to_string(SpvCapability cap); const char *spirv_decoration_to_string(SpvDecoration dec); + +#endif /* SPIRV_INFO_H */ diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h index cc86629..5769c0c 100644 --- a/src/compiler/spirv/vtn_private.h +++ b/src/compiler/spirv/vtn_private.h @@ -25,6 +25,9 @@ * */ +#ifndef _VTN_PRIVATE_H_ +#define _VTN_PRIVATE_H_ + #include "nir/nir.h" #include "nir/nir_builder.h" #include "nir/nir_array.h" @@ -496,3 +499,5 @@ vtn_u64_literal(const uint32_t *w) { return (uint64_t)w[1] << 32 | w[0]; } + +#endif /* _VTN_PRIVATE_H_ */