Go to the documentation of this file. 1 #ifndef _GLUCAT_PORTABILITY_H
2 #define _GLUCAT_PORTABILITY_H
34 #include <boost/version.hpp>
38 #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
39 # define _GLUCAT_GCC_IGNORE_UNUSED_LOCAL_TYPEDEFS
43 #if __cplusplus > 199711L
44 # define _GLUCAT_ISNAN(x) (std::isnan(x))
45 # define _GLUCAT_ISINF(x) (std::isinf(x))
47 # define _GLUCAT_ISNAN(x) (x != x)
48 # define _GLUCAT_ISINF(x) (!_GLUCAT_ISNAN(x) && _GLUCAT_ISNAN(x-x))
52 #if BOOST_VERSION >= 103400
53 # define UBLAS_ABS type_abs
54 # define UBLAS_SQRT type_sqrt
56 # define UBLAS_ABS abs
57 # define UBLAS_SQRT sqrt
61 #if defined(HAVE_BITS_WORDSIZE_H)
62 # include <bits/wordsize.h>
65 #endif // _GLUCAT_PORTABILITY_H