From d01b76070dec253dcad439ef9cd8486c18c4404c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 23 Aug 2018 13:12:41 +0200 Subject: [PATCH] tsc: add missing extern "C" declaration --- common/include/villas/tsc.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/common/include/villas/tsc.h b/common/include/villas/tsc.h index 5db9c2cc6..407f57a17 100644 --- a/common/include/villas/tsc.h +++ b/common/include/villas/tsc.h @@ -27,13 +27,17 @@ #include #include -#include - #ifdef __APPLE__ #include #include #endif +#include + +#ifdef __cplusplus +extern "C" { +#endif + #ifndef bit_TSC #define bit_TSC (1 << 4) #endif @@ -93,3 +97,7 @@ int tsc_init(struct tsc *t); uint64_t tsc_rate_to_cyles(struct tsc *t, double rate); uint64_t tsc_now(struct tsc *t); + +#ifdef __cplusplus +} +#endif