From a256f6e2fadc6a4ee18810a7499e4aed96870245 Mon Sep 17 00:00:00 2001 From: Alessandro Mascolo Date: Sun, 25 Aug 2024 20:06:02 +0200 Subject: [PATCH] Update timer_alarm.h for C++ support --- ee/kernel/include/timer_alarm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ee/kernel/include/timer_alarm.h b/ee/kernel/include/timer_alarm.h index 12f444fd886..038e2e40c28 100644 --- a/ee/kernel/include/timer_alarm.h +++ b/ee/kernel/include/timer_alarm.h @@ -14,11 +14,19 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + extern u64 AlarmHandler(s32 alarm_id, u64 scheduled_time, u64 actual_time, void *arg, void *last_pc); extern s32 iSetTimerAlarm(u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg); extern s32 SetTimerAlarm(u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg); extern s32 iReleaseTimerAlarm(s32 id); extern s32 ReleaseTimerAlarm(s32 id); +#ifdef __cplusplus +}; +#endif + #endif