X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fd769219531a772284d75320187a0ef9f8118afd..4e3a5dfcf8e95dedcf2c6db54f782eccfd5554d9:/include/smpi/mpi.h diff --git a/include/smpi/mpi.h b/include/smpi/mpi.h index 2cb6aca2b4..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,11 +16,21 @@ #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 +#ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */ +#include +#endif + #endif