Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
c3ece3fe7fcad40bccfe4a6938902e6c9c2cc740
[simgrid.git] / src / portable.h
1 /* portable -- header loading to write portable code within SimGrid         */
2
3 /* Copyright (c) 2004, 2016. The SimGrid Team. All rights reserved.         */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef SIMGRID_PORTABLE_H
9 #define SIMGRID_PORTABLE_H
10
11 #include "simgrid_config.h"       /* what was compiled in? */
12 #include "src/internal_config.h"  /* some information about the environment */
13
14 #ifdef _WIN32
15 # include <windows.h>
16 #endif
17
18 #ifdef HAVE_SYS_PARAM_H
19 # include <sys/param.h>
20 #endif
21 #ifdef HAVE_SYS_SYSCTL_H
22 # include <sys/sysctl.h>
23 #endif
24
25 /* File handling */
26 #ifdef _WIN32
27   #ifdef S_IRGRP
28     #undef S_IRGRP
29   #endif
30   #define S_IRGRP 0
31 #endif
32 #endif                          /* SIMGRID_PORTABLE_H */