1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

tsc: add missing extern "C" declaration

This commit is contained in:
Steffen Vogel 2018-08-23 13:12:41 +02:00
parent bf0b8f949e
commit d01b76070d

View file

@ -27,13 +27,17 @@
#include <cpuid.h>
#include <inttypes.h>
#include <villas/kernel/kernel.h>
#ifdef __APPLE__
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#include <villas/kernel/kernel.h>
#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