Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix compilation issue with windows timers
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 7 Oct 2013 15:50:36 +0000 (17:50 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 7 Oct 2013 15:50:36 +0000 (17:50 +0200)
src/xbt/xbt_os_time.c

index 4071c01..f378ca1 100644 (file)
@@ -92,7 +92,7 @@ void xbt_os_sleep(double sec)
 struct s_xbt_os_timer {
 #ifdef HAVE_POSIX_GETTIME
   struct timespec start, stop, elapse;
-#elif defined(HAVE_GETTIMEOFDAY)
+#elif defined(HAVE_GETTIMEOFDAY) || defined(_XBT_WIN32)
   struct timeval start, stop, elapse;
 #else
   unsigned long int start, stop, elapse;