From 2374b1a9fbbf0e097becf3cd944a3f1152affe32 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 14 Dec 2017 08:23:58 +1100 Subject: [PATCH] [client] make methods static inline --- client/renderers/opengl.c | 2 +- client/utils.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index 3669173c..bff1804e 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -573,7 +573,7 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data, bool resampl return true; } -inline void lgr_opengl_draw_mouse(struct LGR_OpenGL * this) +static inline void lgr_opengl_draw_mouse(struct LGR_OpenGL * this) { if (!this->mouseVisible) return; diff --git a/client/utils.h b/client/utils.h index c5bf465f..350d5180 100644 --- a/client/utils.h +++ b/client/utils.h @@ -22,14 +22,14 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include #include -inline uint64_t microtime() +static inline uint64_t microtime() { struct timespec time; clock_gettime(CLOCK_MONOTONIC_RAW, &time); return ((uint64_t)time.tv_sec * 1000000) + (time.tv_nsec / 1000); } -inline uint64_t nanotime() +static inline uint64_t nanotime() { struct timespec time; clock_gettime(CLOCK_MONOTONIC_RAW, &time);