From 3a64325c7e5288319a68f475530ffbc343ee851c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 9 Sep 2019 16:46:58 -0700 Subject: [PATCH] Remove inline from functions This breaks C++ semantics. It's also unnecessary. --- src/timer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/timer.c b/src/timer.c index 415514456..ba9df1889 100644 --- a/src/timer.c +++ b/src/timer.c @@ -9,12 +9,12 @@ #if defined (_WIN) -inline void hc_timer_set (hc_timer_t *a) +void hc_timer_set (hc_timer_t *a) { QueryPerformanceCounter (a); } -inline double hc_timer_get (hc_timer_t a) +double hc_timer_get (hc_timer_t a) { hc_timer_t hr_freq; @@ -31,7 +31,7 @@ inline double hc_timer_get (hc_timer_t a) #else -inline void hc_timer_set (hc_timer_t* a) +void hc_timer_set (hc_timer_t* a) { #if defined(__APPLE__) && defined(MISSING_CLOCK_GETTIME) gettimeofday (a, NULL); @@ -40,7 +40,7 @@ inline void hc_timer_set (hc_timer_t* a) #endif } -inline double hc_timer_get (hc_timer_t a) +double hc_timer_get (hc_timer_t a) { hc_timer_t hr_tmp;