ac: consistently use ifndef guards over pragma once
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.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:
parent
3b277bae66
commit
95ab07c586
|
@ -24,7 +24,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#ifndef AC_BINARY_H
|
||||||
|
#define AC_BINARY_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
@ -97,3 +98,5 @@ void ac_shader_binary_read_config(struct ac_shader_binary *binary,
|
||||||
struct ac_shader_config *conf,
|
struct ac_shader_config *conf,
|
||||||
unsigned symbol_offset,
|
unsigned symbol_offset,
|
||||||
bool supports_spill);
|
bool supports_spill);
|
||||||
|
|
||||||
|
#endif /* AC_BINARY_H */
|
||||||
|
|
|
@ -22,7 +22,9 @@
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#pragma once
|
|
||||||
|
#ifndef AC_LLVM_UTIL_H
|
||||||
|
#define AC_LLVM_UTIL_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <llvm-c/TargetMachine.h>
|
#include <llvm-c/TargetMachine.h>
|
||||||
|
@ -65,3 +67,5 @@ void ac_dump_module(LLVMModuleRef module);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* AC_LLVM_UTIL_H */
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#ifndef AC_NIR_TO_LLVM_H
|
||||||
|
#define AC_NIR_TO_LLVM_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "llvm-c/Core.h"
|
#include "llvm-c/Core.h"
|
||||||
|
@ -157,3 +158,4 @@ void ac_create_gs_copy_shader(LLVMTargetMachineRef tm,
|
||||||
const struct ac_nir_compiler_options *options,
|
const struct ac_nir_compiler_options *options,
|
||||||
bool dump_shader);
|
bool dump_shader);
|
||||||
|
|
||||||
|
#endif /* AC_NIR_TO_LLVM_H */
|
||||||
|
|
Loading…
Reference in New Issue