From 6d82009532fa73c1effc58194457217126ea68b7 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 27 Feb 2022 16:27:45 +0000 Subject: [PATCH] add C++ header guards --- libprof.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */