From 65471819593b3176bb0b4a83171dc3178d504861 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Wed, 14 Jun 2023 20:40:50 +0300 Subject: [PATCH] C Header guards --- vga.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vga.h b/vga.h index 60c0666..b2aa979 100644 --- a/vga.h +++ b/vga.h @@ -1,3 +1,5 @@ +#ifndef HEADER_VGA +#define HEADER_VGA enum vga_color { VGA_COLOR_BLACK = 0, @@ -18,3 +20,5 @@ void vga_write(const char* text); void vga_write_color( const char* text, enum vga_color fg, enum vga_color bg); void vga_write_line(const char* text); void vga_write_line_color( const char* text, enum vga_color fg, enum vga_color bg); + +#endif