aboutsummaryrefslogtreecommitdiff
path: root/lib/string.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-12-10 20:56:57 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-12-11 11:32:51 +0200
commit9b2a78fa52249ab481493550490aa5f37872dcf6 (patch)
tree127031268b9b42b0fbdae3d87684d9c045983677 /lib/string.h
parentRename CCFLAGS to CFLAGS (diff)
downloadkernel-9b2a78fa52249ab481493550490aa5f37872dcf6.tar.xz
Rewrite drivers/uart and drivers/vga in cpp
Diffstat (limited to 'lib/string.h')
-rw-r--r--lib/string.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/string.h b/lib/string.h
index 1eb3da2..460057c 100644
--- a/lib/string.h
+++ b/lib/string.h
@@ -4,6 +4,9 @@
#define DECIMAL 10
#define HEX 16
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* Convert int into a string
*/
@@ -12,3 +15,6 @@ char *itoa(char *p, int x, int base);
* Convert unsigned int into a string
*/
char *utoa(char *p, unsigned x, int base);
+#ifdef __cplusplus
+}
+#endif