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/kmalloc.h | |
parent | 4959f61efcf664f80e8526c834f6ed35413af7ea (diff) |
(misc): Add support for C++
Diffstat (limited to 'kernel/include/libk/kmalloc.h')
-rw-r--r-- | kernel/include/libk/kmalloc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/include/libk/kmalloc.h b/kernel/include/libk/kmalloc.h index 85e247a..e124c70 100644 --- a/kernel/include/libk/kmalloc.h +++ b/kernel/include/libk/kmalloc.h @@ -21,6 +21,10 @@ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + #define MIN_PAGES 4 typedef struct memory_chunk_t { @@ -32,4 +36,8 @@ typedef struct memory_chunk_t { void *kmalloc(uint32_t size); +#ifdef __cplusplus +} +#endif + #endif |