[client] make methods static inline

This commit is contained in:
Geoffrey McRae 2017-12-14 08:23:58 +11:00
parent 163f612efa
commit 2374b1a9fb
2 changed files with 3 additions and 3 deletions

View File

@ -573,7 +573,7 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data, bool resampl
return true; 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) if (!this->mouseVisible)
return; return;

View File

@ -22,14 +22,14 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <time.h> #include <time.h>
#include <stdint.h> #include <stdint.h>
inline uint64_t microtime() static inline uint64_t microtime()
{ {
struct timespec time; struct timespec time;
clock_gettime(CLOCK_MONOTONIC_RAW, &time); clock_gettime(CLOCK_MONOTONIC_RAW, &time);
return ((uint64_t)time.tv_sec * 1000000) + (time.tv_nsec / 1000); return ((uint64_t)time.tv_sec * 1000000) + (time.tv_nsec / 1000);
} }
inline uint64_t nanotime() static inline uint64_t nanotime()
{ {
struct timespec time; struct timespec time;
clock_gettime(CLOCK_MONOTONIC_RAW, &time); clock_gettime(CLOCK_MONOTONIC_RAW, &time);