X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ffe46c97f312f9af2b6eb0c4068a84d4523fb10..797737710f8b5d85f339aaee9410d35ea85b9665:/include/smpi/mpi.h diff --git a/include/smpi/mpi.h b/include/smpi/mpi.h index 665ac78b88..671d22ec89 100644 --- a/include/smpi/mpi.h +++ b/include/smpi/mpi.h @@ -9,8 +9,6 @@ #define SEED 221238 -#define sleep(x) smpi_sleep(x) - #include #include #include @@ -18,15 +16,20 @@ #include #include /* Load it before the define next line to not mess with the system headers */ -#define gettimeofday(x, y) smpi_gettimeofday(x, NULL) -#if HAVE_MC +#define sleep(x) smpi_sleep(x) +#define usleep(x) smpi_usleep(x) +#define gettimeofday(x, y) smpi_gettimeofday(x, NULL) +#if _POSIX_TIMERS > 0 +#define nanosleep(x, y) smpi_nanosleep(x, y) +#define clock_gettime(x, y) smpi_clock_gettime(x, y) +#endif +#if SIMGRID_HAVE_MC #undef assert #define assert(x) MC_assert(x) #endif -#if TRACE_CALL_LOCATION -//#include "src/instr/instr_smpi.h" +#ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */ #include #endif