Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] VA_COPY is defined
[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
24     /* Manually define the HAVE_* corresponding to the MSVC development environment */
25     #define HAVE_VA_COPY
26
27   # else
28     # error "Unknown compiler - please report the problems to the main simgrid mailing list (http://gforge.inria.fr/mail/?group_id=12)"
29   #endif
30 #endif
31
32 #ifndef _MSC_VER
33   #ifndef EWOULDBLOCK
34   #define EWOULDBLOCK WSAEWOULDBLOCK
35   #endif
36
37   #ifndef EINPROGRESS
38   #define EINPROGRESS WSAEINPROGRESS
39   #endif
40
41   #ifndef ETIMEDOUT
42   #define ETIMEDOUT   WSAETIMEDOUT
43   #endif
44 #endif
45
46 #ifdef S_IRGRP
47   #undef S_IRGRP
48 #endif
49
50 #define S_IRGRP 0
51
52 #ifdef S_IWGRP
53   #undef S_IWGRP
54 #endif
55
56 #define S_IWGRP 0
57
58 #endif                          /* #ifndef __XBT_WIN32_CONFIG_H__ */