OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

OTF_Platform.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.h
8 *
9 * @brief Deals with platform dependend issues.
10 *
11 * \ingroup internal
12 */
13
14
15 /* THIS HEADER SHOULD NEVER BE INCLUDED INTO OTHER HEADERS OF THE OTF LIBRARY
16 AND HAS TO BE INCLUDED INTO ALL .C-FILES OF THE OTF LIBARY */
17
18
19 #ifndef OTF_PLATFORM_H
20 #define OTF_PLATFORM_H
21
22 #if defined(_WIN32) /* windows */
23 # include "OTF_Platform_win.h"
24 #else /* unix */
25 # include "OTF_Platform_unix.h"
26 #endif /* windows/unix */
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31
32 /* if you know (for sure) of more compilers supporting __FUNCTION__,
33 then add them here */
34 #if defined(__GNUC__) /* gnu */
35 #elif defined(_MSC_VER) /* ms vs */
36 #elif defined(__xlC__) /* ibm xlc */
37 #else
38
39 /* set __FUNCTION__ to a dummy for compilers not supporting this macro */
40 # define __FUNCTION__ "<unknown function>"
41
42 #endif
43
44 #ifndef __FILE__
45 # define __FILE__ "<unknown file>"
46 #endif
47
48 #ifndef __LINE__
49 # define __LINE__ 0
50 #endif
51
52 char* OTF_basename( char* path );
53
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57
58 #endif /* OTF_PLATFORM_H */
OTF_Platform_unix.h
Deals with platform dependend issues.
OTF_Platform_win.h
Deals with platform dependend issues.