1 /* Copyright (c) 2010-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #define sleep(x) smpi_sleep(x)
14 #define nanosleep(x, y) smpi_nanosleep(x, y)
16 #define usleep(x) smpi_usleep(x)
18 #include <smpi/smpi.h>
19 #include <xbt/sysdep.h>
21 #include <xbt/asserts.h>
22 #include <simgrid/modelchecker.h>
24 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
25 #define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
27 #define clock_gettime(x, y) smpi_clock_gettime(x, y)
31 #define assert(x) MC_assert(x)
34 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
35 #include <smpi/smpi_extended_traces.h>