From: Emil Velikov Date: Mon, 20 Mar 2017 16:04:04 +0000 (+0000) Subject: ac: consistently use ifndef guards over pragma once X-Git-Tag: upstream/17.1.0~1139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95ab07c586884699df0bbdf9a0bc9acd8c626c8b;p=platform%2Fupstream%2Fmesa.git ac: consistently use ifndef guards over pragma once Signed-off-by: Emil Velikov Reviewed-by: Marek Olšák Acked-by: Vedran Miletić Acked-by: Juha-Pekka Heikkila Reviewed-by: Edward O'Callaghan --- diff --git a/src/amd/common/ac_binary.h b/src/amd/common/ac_binary.h index 0ece929..a784a72 100644 --- a/src/amd/common/ac_binary.h +++ b/src/amd/common/ac_binary.h @@ -24,7 +24,8 @@ * */ -#pragma once +#ifndef AC_BINARY_H +#define AC_BINARY_H #include #include @@ -97,3 +98,5 @@ void ac_shader_binary_read_config(struct ac_shader_binary *binary, struct ac_shader_config *conf, unsigned symbol_offset, bool supports_spill); + +#endif /* AC_BINARY_H */ diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h index 4b0ccdd..faecf1e 100644 --- a/src/amd/common/ac_llvm_util.h +++ b/src/amd/common/ac_llvm_util.h @@ -22,7 +22,9 @@ * of the Software. * */ -#pragma once + +#ifndef AC_LLVM_UTIL_H +#define AC_LLVM_UTIL_H #include #include @@ -65,3 +67,5 @@ void ac_dump_module(LLVMModuleRef module); #ifdef __cplusplus } #endif + +#endif /* AC_LLVM_UTIL_H */ diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h index bb860e5..b4c4a73 100644 --- a/src/amd/common/ac_nir_to_llvm.h +++ b/src/amd/common/ac_nir_to_llvm.h @@ -21,7 +21,8 @@ * IN THE SOFTWARE. */ -#pragma once +#ifndef AC_NIR_TO_LLVM_H +#define AC_NIR_TO_LLVM_H #include #include "llvm-c/Core.h" @@ -157,3 +158,4 @@ void ac_create_gs_copy_shader(LLVMTargetMachineRef tm, const struct ac_nir_compiler_options *options, bool dump_shader); +#endif /* AC_NIR_TO_LLVM_H */