diff --git a/libprof.h b/libprof.h index 123176d..02905a9 100644 --- a/libprof.h +++ b/libprof.h @@ -5,6 +5,10 @@ #ifndef LIBPROF_LIBPROF #define LIBPROF_LIBPROF +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -98,4 +102,8 @@ extern uint32_t volatile *prof_tcnt; Should only be called when the context is not currently executing. */ uint32_t prof_time(prof_t prof); +#ifdef __cplusplus +} +#endif + #endif /* LIBPROF_LIBPROF */