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