OpenMPI  0.1.1
OTF_Platform_win.h
Go to the documentation of this file.
1 /*
2  This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
3  Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
4 */
5 
6 /**
7  * @file OTF_Platform_win.h
8  *
9  * @brief Deals with platform dependend issues.
10  *
11  * \ingroup internal
12  */
13 
14 
15 #ifndef OTF_PLATFORM_WIN_H
16 #define OTF_PLATFORM_WIN_H
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21 
22 #if defined(_MSC_VER) /* visual studio */
23 
24 # include <limits.h>
25 # include <winsock2.h>
26 
27 # define HAVE_IO_H
28 # define HAVE_ZLIB
29 
30 # ifndef PATH_MAX
31 # define PATH_MAX 255
32 # endif
33 
34 # define OTF_PATH_MAX PATH_MAX
35 
36 # undef ftello
37 # define ftello (uint64_t) _ftelli64
38 # undef fseeko
39 # define fseeko(f,off,orig) _fseeki64(f,(__int64)off,orig)
40 
41 # undef snprintf
42 # define snprintf _snprintf
43 
44 # pragma warning (disable : 4996) /* disable insecurity/deprication warnings */
45 
46  int gettimeofday(struct timeval* tv, void* dummytimezone);
47 
48 #else
49 
50 # error "You are using an unsupported compiler on windows."
51 
52 #endif /* _MSC_VER */
53 
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57 
58 #endif /* OTF_PLATFORM_WIN_H */