Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't choke on MSVC; cosmetics in cmake output
[simgrid.git] / src / win32 / config.h
1 #ifndef __XBT_WIN32_CONFIG_H__
2 #define __XBT_WIN32_CONFIG_H__
3
4
5 /* config.h - simgrid config selection for windows platforms. */
6
7 /* Copyright (c) 2006-2008, 2010, 2012-2014. The SimGrid Team.
8  * All rights reserved.                                                     */
9
10 /* This program is free software; you can redistribute it and/or modify it
11  * under the terms of the license (GNU LGPL) which comes with this package. */
12
13 /* 
14  * config selection. 
15 */
16 #if defined(__GNUC__) /* either MinGW or cross-compiling */
17   # include "internal_config.h"
18   #ifndef _XBT_WIN32
19     typedef unsigned int uint32_t;
20   #endif
21 #else
22   #ifdef _MSC_VER /* MSVC */
23     /* Here come the HAVE_* macro that are manually defined when using MSVC */
24     /*    (none for now)    */
25   # else
26     # error "Unknown compiler - please report the problems to the main simgrid mailing list (http://gforge.inria.fr/mail/?group_id=12)"
27   #endif
28 #endif
29
30 #ifndef _MSC_VER
31   #ifndef EWOULDBLOCK
32   #define EWOULDBLOCK WSAEWOULDBLOCK
33   #endif
34
35   #ifndef EINPROGRESS
36   #define EINPROGRESS WSAEINPROGRESS
37   #endif
38
39   #ifndef ETIMEDOUT
40   #define ETIMEDOUT   WSAETIMEDOUT
41   #endif
42 #endif
43
44 #ifdef S_IRGRP
45   #undef S_IRGRP
46 #endif
47
48 #define S_IRGRP 0
49
50 #ifdef S_IWGRP
51   #undef S_IWGRP
52 #endif
53
54 #define S_IWGRP 0
55
56 #endif                          /* #ifndef __XBT_WIN32_CONFIG_H__ */