Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid undefined NULL
[simgrid.git] / include / smpi / smpi_helpers.h
1 #ifndef MPI_HELPERS_H
2 #define MPI_HELPERS_H
3
4 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
5
6 #define sleep(x) smpi_sleep(x)
7 #define usleep(x) smpi_usleep(x)
8 #define gettimeofday(x, y) smpi_gettimeofday(x, 0)
9 #if _POSIX_TIMERS > 0
10 #define nanosleep(x, y) smpi_nanosleep(x, y)
11 #define clock_gettime(x, y) smpi_clock_gettime(x, y)
12 #endif
13
14 #define getopt(x,y,z) smpi_getopt(x,y,z)
15 #define getopt_long(x,y,z,a,b) smpi_getopt_long(x,y,z,a,b)
16
17 #endif