summaryrefslogtreecommitdiff
path: root/src/user/include/libfont/fonts.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-04 19:11:42 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-04 19:11:42 -0500
commit406af09ade55553e2b064506c3ba3c89bd965d73 (patch)
treedd6da93bc329d6b1097aa1afcde2af19491dfc8e /src/user/include/libfont/fonts.h
parent86af7f631080bc4b45846bd7f382c4cedcbec2b4 (diff)
downloadportland-os-406af09ade55553e2b064506c3ba3c89bd965d73.tar.gz
start of a c++ widget toolkit, c++ runtime
Diffstat (limited to 'src/user/include/libfont/fonts.h')
-rw-r--r--src/user/include/libfont/fonts.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user/include/libfont/fonts.h b/src/user/include/libfont/fonts.h
index f7ed3e1..629ed5a 100644
--- a/src/user/include/libfont/fonts.h
+++ b/src/user/include/libfont/fonts.h
@@ -1,6 +1,10 @@
#ifndef LIBFONT_FONTS_H
#define LIBFONT_FONTS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <pland/syscall.h>
#include <stdbool.h>
@@ -21,4 +25,8 @@ struct font_info *get_font(const char *name);
//pitch is in pixels
void put_char(const struct font_info *font, char ch, _pixel_t *pb_ptr, uint32_t pb_pitch, _pixel_t bg, _pixel_t fg);
+#ifdef __cplusplus
+}
+#endif
+
#endif \ No newline at end of file