aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/drivers/vga_text_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/drivers/vga_text_buffer.h')
-rw-r--r--kernel/include/drivers/vga_text_buffer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/kernel/include/drivers/vga_text_buffer.h b/kernel/include/drivers/vga_text_buffer.h
index 4b0da93..1a506f6 100644
--- a/kernel/include/drivers/vga_text_buffer.h
+++ b/kernel/include/drivers/vga_text_buffer.h
@@ -27,6 +27,10 @@
#include <stdbool.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define VGA_WIDTH 80
#define VGA_HEIGHT 25
@@ -47,7 +51,7 @@ typedef enum {
VGA_COLOR_LIGHT_RED = 12,
VGA_COLOR_LIGHT_MAGENTA = 13,
VGA_COLOR_LIGHT_BROWN = 14,
- VGA_COLOR_WHITE = 15,
+ VGA_COLOR_WHITE = 15
} vga_color;
/*
@@ -70,4 +74,8 @@ void vga_text_buffer_write_char(const char);
void vga_text_buffer_write_string(const char *string);
void vga_text_buffer_printf(const char *string, ...);
+#ifdef __cplusplus
+}
+#endif
+
#endif