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:
parent
bf0b8f949e
commit
d01b76070d
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue