From 750f0374bc53a11d9c04e050e140423ca23abe51 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 16 Jul 2018 22:19:35 +0200 Subject: [PATCH] fix duplicate extern "C" keyword --- include/villas/utils.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/villas/utils.h b/include/villas/utils.h index ba10966c8..d47d42f75 100644 --- a/include/villas/utils.h +++ b/include/villas/utils.h @@ -37,10 +37,6 @@ extern "C" { #include #include -#ifdef __cplusplus -extern "C"{ -#endif - #ifdef __GNUC__ #define LIKELY(x) __builtin_expect((x),1) @@ -264,7 +260,8 @@ __attribute__((always_inline)) static inline uint64_t rdtsc() } /** Get log2 of long long integers */ -static inline int log2i(long long x) { +static inline int log2i(long long x) +{ if (x == 0) return 1;