Mercurial > sdl-ios-xcode
comparison src/timer/unix/SDL_systimer.c @ 1598:5a6893ebc15a
Need time.h for nanosleep too...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 23 Mar 2006 08:37:36 +0000 |
parents | d910939febfa |
children | 92947e3a18db |
comparison
equal
deleted
inserted
replaced
1597:06e9f1c7611b | 1598:5a6893ebc15a |
---|---|
34 /* The clock_gettime provides monotonous time, so we should use it if | 34 /* The clock_gettime provides monotonous time, so we should use it if |
35 it's available. The clock_gettime function is behind ifdef | 35 it's available. The clock_gettime function is behind ifdef |
36 for __USE_POSIX199309 | 36 for __USE_POSIX199309 |
37 Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005 | 37 Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005 |
38 */ | 38 */ |
39 #if HAVE_CLOCK_GETTIME | 39 #if HAVE_NANOSLEEP || HAVE_CLOCK_GETTIME |
40 #include <time.h> | 40 #include <time.h> |
41 #endif | 41 #endif |
42 | 42 |
43 #if SDL_THREAD_PTH | 43 #if SDL_THREAD_PTH |
44 #include <pth.h> | 44 #include <pth.h> |