diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-31 00:25:36 -0500 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-31 00:25:36 -0500 |
commit | eadb94693002a2f5435722f2d967d7fa08866a1d (patch) | |
tree | e1f98cc27b8891e939c8f051628c709e4fe056ca /kernel/include/libk/stdio.h | |
parent | 4959f61efcf664f80e8526c834f6ed35413af7ea (diff) |
(misc): Add support for C++
Diffstat (limited to 'kernel/include/libk/stdio.h')
-rw-r--r-- | kernel/include/libk/stdio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/include/libk/stdio.h b/kernel/include/libk/stdio.h index f944fe4..44050dd 100644 --- a/kernel/include/libk/stdio.h +++ b/kernel/include/libk/stdio.h @@ -22,6 +22,10 @@ #include <stdarg.h> #include <stddef.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef int (*_printf_engine_output_func)(const char *str, size_t len, void *state); @@ -39,4 +43,8 @@ int vsnprintf(char *str, size_t len, const char *fmt, va_list ap); void printk(const char *from, const char *msg, ...); void printk_raw(const char *msg, ...); +#ifdef __cplusplus +} +#endif + #endif |