aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/drivers/vga_text_buffer.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-01-31 00:25:36 -0500
committerRaghuram Subramani <raghus2247@gmail.com>2025-01-31 00:25:36 -0500
commiteadb94693002a2f5435722f2d967d7fa08866a1d (patch)
treee1f98cc27b8891e939c8f051628c709e4fe056ca /kernel/include/drivers/vga_text_buffer.h
parent4959f61efcf664f80e8526c834f6ed35413af7ea (diff)
(misc): Add support for C++
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