浏览代码

add pragma once

greatbridf 4 年之前
父节点
当前提交
17b272f978
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      include/asm/boot.h
  2. 2 0
      include/kernel_main.h

+ 2 - 0
include/asm/boot.h

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <types/stdint.h>
 #include <types/stdint.h>
 
 
 struct gdt_descriptor {
 struct gdt_descriptor {

+ 2 - 0
include/kernel_main.h

@@ -1 +1,3 @@
+#pragma once
+
 void kernel_main(void);
 void kernel_main(void);