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 #include <smpi/smpi.h>
13 #include <xbt/sysdep.h>
15 #include <xbt/asserts.h>
16 #include <simgrid/modelchecker.h>
18 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
20 #define sleep(x) smpi_sleep(x)
21 #define usleep(x) smpi_usleep(x)
22 #define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
24 #define nanosleep(x, y) smpi_nanosleep(x, y)
25 #define clock_gettime(x, y) smpi_clock_gettime(x, y)
29 #define assert(x) MC_assert(x)
32 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
33 #include <smpi/smpi_extended_traces.h>