X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f510626d20b164f5cc6cfd495eb51fcf0f3ec314..cf33c98cf91e57245e1785ae9d4750c854f6e8a7:/include/smpi/mpi.h diff --git a/include/smpi/mpi.h b/include/smpi/mpi.h index ee9e433c69..5021574a10 100644 --- a/include/smpi/mpi.h +++ b/include/smpi/mpi.h @@ -9,12 +9,6 @@ #define SEED 221238 -#define sleep(x) smpi_sleep(x) -#if _POSIX_TIMERS -#define nanosleep(x,y) smpi_nanosleep(x,NULL) -#endif -#define usleep(x) smpi_usleep(x) - #include #include #include @@ -22,8 +16,12 @@ #include #include /* Load it before the define next line to not mess with the system headers */ + +#define sleep(x) smpi_sleep(x) +#define usleep(x) smpi_usleep(x) #define gettimeofday(x, y) smpi_gettimeofday(x, NULL) -#if _POSIX_TIMERS +#if _POSIX_TIMERS > 0 +#define nanosleep(x, y) smpi_nanosleep(x, y) #define clock_gettime(x, y) smpi_clock_gettime(x, y) #endif #if HAVE_MC