diff --git a/kernel/common/font.h b/kernel/common/font.h index 1c8add4f..4f07fa22 100644 --- a/kernel/common/font.h +++ b/kernel/common/font.h @@ -1,6 +1,5 @@ -#ifndef __FONT_H__ -#define __FONT_H__ +#pragma once unsigned char font_ascii[256][16]= { @@ -316,5 +315,4 @@ unsigned char font_ascii[256][16]= }; -#endif diff --git a/kernel/common/printk.h b/kernel/common/printk.h index d3ff8003..50acbacc 100644 --- a/kernel/common/printk.h +++ b/kernel/common/printk.h @@ -2,8 +2,7 @@ // Created by longjin on 2022/1/21. // #pragma once -#ifndef PRINTK_H -#define PRINTK_H + #define PAD_ZERO 1 // 0填充 #define LEFT 2 // 靠左对齐 @@ -121,4 +120,3 @@ static void putchar(unsigned int *fb, int Xsize, int x, int y, unsigned int FRco int printk_color(unsigned int FRcolor, unsigned int BKcolor, const char*fmt, ...); -#endif \ No newline at end of file