#if HAVE_CLOCK_GETTIME
static clockid_t _ecore_time_clock_id = -1;
+#else
+static int _ecore_time_clock_id = -1;
#endif
double _ecore_time_loop_time = -1.0;
return evil_time_get();
#else
# ifdef HAVE_GETTIMEOFDAY
- struct timeval timev;
+ struct timeval timev;
gettimeofday(&timev, NULL);
return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
}
#else
# warning "Your platform isn't supported yet"
- _ecore_time_clock_it = -2;
+ _ecore_time_clock_id = -2;
CRIT("Platform does not support clock_gettime. "
"Fallback to unix time.");
#endif