globus_common  17.10
globus_config.h
Go to the documentation of this file.
1 
6 #include <stdint.h>
7 #include <limits.h>
8 
9 #if !defined(GLOBUS_CONFIG_H)
10 #define GLOBUS_CONFIG_H 1
11 #define BUILD_DEBUG 1
12 
13 #ifdef __STDC__
14  #ifndef HAVE_STDARG_H
15  #define HAVE_STDARG_H
16  #endif
17 #endif
18 
19 #ifdef _WIN32
20  #define TARGET_ARCH_WIN32 1
21  #define WINVER 0x0601
22  #define _WIN32_WINNT WINVER
23 #endif
24 
25 #ifdef __MINGW32__
26  #ifndef HAVE_IN6_IS_ADDR_UNSPECIFIED
27  #define HAVE_IN6_IS_ADDR_UNSPECIFIED 1
28  #endif
29  #ifndef __USE_MINGW_ANSI_STDIO
30  #define __USE_MINGW_ANSI_STDIO 1
31  #endif
32  #ifndef _POSIX
33  #define _POSIX 1
34  #endif
35  #define TARGET_ARCH_MINGW32
36 #endif
37 
38 #ifdef __HOS_AIX__
39  #define TARGET_ARCH_AIX 1
40 #endif
41 
42 #ifdef __FreeBSD__
43  #define TARGET_ARCH_FREEBSD 1
44  #define TARGET_ARCH_BSD 1
45 #endif
46 
47 #ifdef __OpenBSD__
48  #define TARGET_ARCH_OPENBSD 1
49  #define TARGET_ARCH_BSD 1
50 #endif
51 
52 #ifdef __CYGWIN__
53  #define TARGET_ARCH_CYGWIN
54 #endif
55 
56 #ifdef __APPLE__
57  #define TARGET_ARCH_DARWIN 1
58  #define TARGET_ARCH_BSD 1
59 #endif
60 
61 #ifdef sun
62  #define TARGET_ARCH_SOLARIS 1
63  #ifdef __i386
64  #define TARGET_ARCH_X86 1
65  #endif
66  #ifdef __x86_64
67  #define TARGET_ARCH_X86_64 1
68  #endif
69 #endif
70 
71 #ifdef __hpux
72  #define TARGET_ARCH_HPUX 1
73  #ifdef __ia64
74  #define TARGET_ARCH_IA64 1
75  #endif
76 #endif
77 
78 #if defined(__linux__) || defined(linux) || defined(__linux)
79  #define TARGET_ARCH_LINUX 1
80  #if defined(__x86_64) || defined(__x86_64__)
81  #define TARGET_ARCH_X86 1
82  #elif defined(i386) || defined(__i386) || defined(__i386__)
83  #define TARGET_ARCH_X86_64 1
84  #elif defined(__ia64) || defined(__itanium__)
85  #define TARGET_ARCH_IA64 1
86  #elif defined(__sparc)
87  #define TARGET_ARCH_SPARC 1
88  #endif
89 #endif
90 
91 #ifdef __GNUC__
92 #define GLOBUS_FLAVOR_PREFIX "gcc"
93 #else
94 #define GLOBUS_FLAVOR_PREFIX "cc"
95 #endif
96 
97 #if LONG_MAX >= INT64_MAX
98 #define GLOBUS_FLAVOR_SUFFIX "64"
99 #else
100 #define GLOBUS_FLAVOR_SUFFIX "32"
101 #endif
102 
103 #define GLOBUS_FLAVOR_NAME GLOBUS_FLAVOR_PREFIX GLOBUS_FLAVOR_SUFFIX
104 
105 #endif /* GLOBUS_CONFIG_H */