Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow MPI codes to use timezone in their gettimeofday (but we replace it
[simgrid.git] / src / smpi / smpi_bench.c
index 9bd3882..2cb5bb2 100644 (file)
@@ -227,7 +227,7 @@ unsigned int smpi_sleep(unsigned int secs)
   return secs;
 }
 
-int smpi_gettimeofday(struct timeval *tv)
+int smpi_gettimeofday(struct timeval *tv, void* tz)
 {
   double now;
   smpi_bench_end();
@@ -574,7 +574,6 @@ void* smpi_shared_set_call(const char* func, const char* input, void* data) {
 
 
 
-#ifndef WIN32
 #define TOPAGE(addr) (void *)(((unsigned long)(addr) / xbt_pagesize) * xbt_pagesize)
 
 
@@ -763,5 +762,3 @@ void smpi_destroy_global_memory_segments(){
 
 }
 
-
-#endif