spirv: consistently use ifndef guards over pragma once
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Mar 2017 16:04:17 +0000 (16:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 16:55:22 +0000 (16:55 +0000)
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>
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv_info.h
src/compiler/spirv/vtn_private.h

index 1a312a918885e8a9365ae1a675c226c8fc0b68ed..1779d1c5f3f1811e3c23683d086dfde476e777b6 100644 (file)
@@ -25,8 +25,6 @@
  *
  */
 
-#pragma once
-
 #ifndef _NIR_SPIRV_H_
 #define _NIR_SPIRV_H_
 
index 1700001e78c6d4d706858716848697e8ddc7872a..81d43ec925a5adf293167bf464fa607962142db7 100644 (file)
  * 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 */
index cc866295274c76ae0557eb83648ebb324a12fc4b..5769c0c6cd2b92e89a89e1067cff038598427e28 100644 (file)
@@ -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_ */