From 9ba590cd47c6330316e41890ae07ffe7ff19d755 Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Wed, 9 Jun 2021 15:31:56 +0800 Subject: [PATCH] [test_utils]: added extern C decl to ccomp Closes https://github.com/espressif/esp-idf/issues/7121 --- .../components/test_utils/include/ccomp_timer.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/unit-test-app/components/test_utils/include/ccomp_timer.h b/tools/unit-test-app/components/test_utils/include/ccomp_timer.h index 5b10fefe04..0773e8f692 100644 --- a/tools/unit-test-app/components/test_utils/include/ccomp_timer.h +++ b/tools/unit-test-app/components/test_utils/include/ccomp_timer.h @@ -18,6 +18,10 @@ #include "esp_err.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Start the timer on the current core. * @@ -52,3 +56,7 @@ int64_t ccomp_timer_stop(void); * core. */ int64_t ccomp_timer_get_time(void); + +#ifdef __cplusplus +} +#endif