From d1fb5c01a7c50f4a9e5ca57dc48857e17035d8df Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Fri, 18 Jun 2021 17:16:51 +0200 Subject: [PATCH] use '#pragma once' include guards Signed-off-by: Axel Heider --- tools/hardware/outputs/c_header.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/hardware/outputs/c_header.py b/tools/hardware/outputs/c_header.py index 02825b262..4ac3015a6 100644 --- a/tools/hardware/outputs/c_header.py +++ b/tools/hardware/outputs/c_header.py @@ -23,8 +23,8 @@ HEADER_TEMPLATE = '''/* * This file is autogenerated by kernel/tools/hardware_gen.py. */ -#ifndef __PLAT_DEVICES_GEN_H -#define __PLAT_DEVICES_GEN_H +#pragma once + #include #ifndef KDEV_BASE @@ -105,7 +105,6 @@ static const p_region_t BOOT_RODATA avail_p_regs[] = { #endif /* !__ASSEMBLER__ */ -#endif /* __PLAT_DEVICES_GEN_H */ '''