]> Dogcows Code - chaz/yoink/blobdiff - src/moof/timer.cc
configuration cleanup and bugfixes
[chaz/yoink] / src / moof / timer.cc
index e31e49fdfb23a567ff857e46c4932e483d921fe3..5bb2092af68591a8dc6fa3df03dd5d0ecd736b3e 100644 (file)
@@ -9,6 +9,8 @@
 *
 **************************************************************************/
 
+#include "config.h"
+
 #include <cerrno>
 #include <ctime>
 #include <limits>
@@ -155,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
@@ -207,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
@@ -226,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
This page took 0.018106 seconds and 4 git commands to generate.