From 2776d00e82b85365efa38d0067b658fd2818ca41 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 28 Sep 2014 01:41:07 +1000 Subject: GOS updates to fix compile warnings on linux --- src/gos/gfx_osx.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gos/gfx_osx.c') diff --git a/src/gos/gfx_osx.c b/src/gos/gfx_osx.c index 50b06530..f2e58f77 100644 --- a/src/gos/gfx_osx.c +++ b/src/gos/gfx_osx.c @@ -30,7 +30,7 @@ void get_ticks(mach_timespec_t *mts){ clock_get_time(cclock, mts); mach_port_deallocate(mach_task_self(), cclock); - + } void _gosInit(void) @@ -89,16 +89,19 @@ void gfxSleepMicroseconds(delaytime_t ms) { systemticks_t gfxSystemTicks(void) { //struct timespec ts; //clock_gettime(CLOCK_MONOTONIC, &ts); - + mach_timespec_t ts; get_ticks(&ts); - - + + return ts.tv_sec * 1000UL + ts.tv_nsec / 1000UL; } gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param) { gfxThreadHandle th; + (void) stackarea; + (void) stacksz; + (void) prio; // Implementing priority with pthreads is a rats nest that is also pthreads implementation dependent. // Only some pthreads schedulers support it, some implementations use the operating system process priority mechanisms. -- cgit v1.2.3