diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-04 19:11:42 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-04 19:11:42 -0500 |
commit | 406af09ade55553e2b064506c3ba3c89bd965d73 (patch) | |
tree | dd6da93bc329d6b1097aa1afcde2af19491dfc8e /src/user/include/pland | |
parent | 86af7f631080bc4b45846bd7f382c4cedcbec2b4 (diff) | |
download | portland-os-406af09ade55553e2b064506c3ba3c89bd965d73.tar.gz |
start of a c++ widget toolkit, c++ runtime
Diffstat (limited to 'src/user/include/pland')
-rw-r--r-- | src/user/include/pland/pcrt.h | 8 | ||||
-rw-r--r-- | src/user/include/pland/syscall.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/user/include/pland/pcrt.h b/src/user/include/pland/pcrt.h index 795738e..6581cbe 100644 --- a/src/user/include/pland/pcrt.h +++ b/src/user/include/pland/pcrt.h @@ -1,6 +1,10 @@ #ifndef PLAND_PCRT_H #define PLAND_PCRT_H +#ifdef __cplusplus +extern "C" { +#endif + #include <pland/syscall.h> #define BEFORE_MAIN(f) \ @@ -19,4 +23,8 @@ extern _task_handle_t calling_task; extern _task_handle_t stdio_task; extern _task_handle_t this_task; +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/user/include/pland/syscall.h b/src/user/include/pland/syscall.h index 3c4f421..d7dfd77 100644 --- a/src/user/include/pland/syscall.h +++ b/src/user/include/pland/syscall.h @@ -1,6 +1,10 @@ #ifndef PLAND_SYSCALL_H #define PLAND_SYSCALL_H +#ifdef __cplusplus +extern "C" { +#endif + #include <stdint.h> #include <stdbool.h> @@ -250,4 +254,8 @@ static inline void _set_file_size(_file_handle_t handle, uint32_t new_size) { _sc2(_SCN_SET_FILE_SIZE, handle, new_size); } +#ifdef __cplusplus +} +#endif + #endif
\ No newline at end of file |