30 #ifndef CASA_AIPSENV_H
31 #define CASA_AIPSENV_H
36 #if __cplusplus >= 201103L
41 #if __cplusplus >= 201402L
55 #if defined(AIPS_GCC2)
58 #if (defined(AIPS_GCC) && __GNUC_CC == 2)
63 #if defined(AIPS_GCC295)
66 #if (defined(AIPS_GCC2) && __GNUC_MINOR__ == 95)
71 #if defined(AIPS_GCC3)
74 #if (defined(AIPS_GCC) && __GNUC__ == 3)
79 #if defined(AIPS_GCC4)
82 #if (defined(AIPS_GCC) && __GNUC__ == 4)
92 #if defined(_MIPS_SZPTR) && (_MIPS_SZPTR == 64)
99 #if defined(AIPS_SUN_NATIVE)
100 #undef AIPS_SUN_NATIVE
102 #if defined(__SUNPRO_CC)
103 #define AIPS_SUN_NATIVE
106 #if defined(AIPS_SOLARIS)
120 #if defined(AIPS_ALPHA)
128 #if defined(AIPS_BSD)
131 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
133 #define AIPS_NOLARGEFILE
136 #if defined(AIPS_HURD)
139 #if defined(__gnu_hurd__)
143 #if defined(AIPS_LINUX)
146 #if defined(__linux__)
150 #if defined(AIPS_KAI)
157 #if defined(AIPS_AIX)
164 #if defined(AIPS_INTELCC)
167 #if defined(__INTEL_COMPILER)
171 #if defined(AIPS_CRAY_PGI)
174 #if defined(__QK_USER__)
175 #define AIPS_CRAY_PGI
176 #if !defined(AIPS_NOLARGEFILE)
177 #define AIPS_NOLARGEFILE
179 #if !defined(AIPS_NO_LEA_MALLOC)
180 #define AIPS_NO_LEA_MALLOC
184 #if defined(AIPS_CRAY_CATAMOUNT)
185 #undef AIPS_CRAY_CATAMOUNT
187 #if defined(__LIB_CATAMOUNT__)
188 #define AIPS_CRAY_CATAMOUNT
191 #if (defined(__ia64) || defined(__x86_64__) || defined(__aarch64__))
192 # if !defined(AIPS_64B)
197 #if defined(AIPS_I386)
204 #if defined(AIPS_DARWIN)
207 #if defined(__APPLE__)
210 #define AIPS_NOLARGEFILE
213 #define AIPS_NO_LEA_MALLOC
214 # if defined(AIPS_LITTLE_ENDIAN)
215 # undef AIPS_LITTLE_ENDIAN
220 #if !(defined(AIPS_LITTLE_ENDIAN))
221 #if (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__))
222 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
223 #define AIPS_LITTLE_ENDIAN
227 #if (defined(AIPS_ALPHA) || defined(AIPS_I386) || defined(__x86_64__) || defined(__ARMEL__) || defined(__AARCH64EL__))
228 #define AIPS_LITTLE_ENDIAN
235 #ifndef AIPS_NOLARGEFILE
236 # undef _FILE_OFFSET_BITS
237 # define _FILE_OFFSET_BITS 64
238 # ifndef _LARGEFILE_SOURCE
239 # define _LARGEFILE_SOURCE
241 # ifndef _LARGEFILE64_SOURCE
242 # define _LARGEFILE64_SOURCE
250 #if defined __GNUC__ || defined __clang__
251 #define AIPS_LIKELY(x) __builtin_expect(!!(x), 1)
252 #define AIPS_UNLIKELY(x) __builtin_expect(!!(x), 0)
254 #define AIPS_LIKELY(x) (x)
255 #define AIPS_UNLIKELY(x) (x)
this file contains all the compiler specific defines