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