X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Ftimer.cc;h=5bb2092af68591a8dc6fa3df03dd5d0ecd736b3e;hp=b5c55ff528f6f3c6205afbb128a8615acc882f09;hb=51069fee9139ab8d14ecc80dffbe5deecb73d9e0;hpb=bc795376d093ee097040f029b891b5435eb3bd21 diff --git a/src/moof/timer.cc b/src/moof/timer.cc index b5c55ff..5bb2092 100644 --- a/src/moof/timer.cc +++ b/src/moof/timer.cc @@ -9,7 +9,7 @@ * **************************************************************************/ -#include "../config.h" +#include "config.h" #include #include @@ -157,7 +157,7 @@ void timer::fire_expired_timers(scalar t) } -#if HAVE_CLOCK_GETTIME +#if USE_CLOCK_GETTIME // Since the monotonic clock will provide us with the time since the // computer started, the number of seconds since that time could easily @@ -209,7 +209,7 @@ void timer::sleep(scalar seconds, mode mode) } -#else // ! HAVE_CLOCK_GETTIME +#else // ! USE_CLOCK_GETTIME // If we don't have posix timers, we'll have to use a different timing @@ -228,7 +228,7 @@ void timer::sleep(scalar seconds, mode mode) SDL_Delay(Uint32(clamp(int(seconds * 1000.0), 0, 1000))); } -#endif // HAVE_CLOCK_GETTIME +#endif // USE_CLOCK_GETTIME } // namespace moof