Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #302 from mpoquet/rename-s4u-synchro-examples
[simgrid.git] / include / smpi / smpi_helpers.h
1 /* Copyright (c) 2018. The SimGrid Team.  All rights reserved.              */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SMPI_HELPERS_H
7 #define SMPI_HELPERS_H
8
9 #ifndef _GNU_SOURCE
10 #define _GNU_SOURCE
11 #endif
12
13 #include <smpi/smpi_helpers_internal.h>
14
15 #define sleep(x) smpi_sleep(x)
16 #define usleep(x) smpi_usleep(x)
17 #define gettimeofday(x, y) smpi_gettimeofday(x, 0)
18 #if _POSIX_TIMERS > 0
19 #define nanosleep(x, y) smpi_nanosleep(x, y)
20 #define clock_gettime(x, y) smpi_clock_gettime(x, y)
21 #endif
22
23 #define getopt(x,y,z) smpi_getopt(x,y,z)
24 #define getopt_long(x,y,z,a,b) smpi_getopt_long(x,y,z,a,b)
25 #define getopt_long_only(x,y,z,a,b) smpi_getopt_long_only(x,y,z,a,b)
26
27 #endif