:: commit 5045a266ee8d2640be41018510abbcc3677a95c7

mintsuki <mintsuki@protonmail.com> — 2022-03-29 03:19

parents: a688a1dd4f

limine: Add extern "C" C++ guards to header

diff --git a/limine.h b/limine.h
index b68a842e..bb7a4091 100644
--- a/limine.h
+++ b/limine.h
@@ -1,6 +1,10 @@
 #ifndef _LIMINE_H
 #define _LIMINE_H 1
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdint.h>
 
 /* Misc */
@@ -356,4 +360,8 @@ struct limine_kernel_address_request {
     LIMINE_PTR(struct limine_kernel_address_response *) response;
 };
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
tab: 248 wrap: offon