Skip to content

Commit a0df816

Browse files
author
thirdwing
committed
RCPP_HAS_LONG_LONG_TYPES protection
1 parent 33b1e53 commit a0df816

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

inst/include/Rcpp/traits/is_arithmetic.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,21 @@ namespace traits{
6565
template<>
6666
struct is_arithmetic<const unsigned long> : public true_type { };
6767

68+
#if defined(RCPP_HAS_LONG_LONG_TYPES)
69+
6870
template<>
69-
struct is_arithmetic<long long> : public true_type { };
71+
struct is_arithmetic<rcpp_long_long_type> : public true_type { };
7072

7173
template<>
72-
struct is_arithmetic<const long long> : public true_type { };
74+
struct is_arithmetic<const rcpp_long_long_type> : public true_type { };
7375

7476
template<>
75-
struct is_arithmetic<unsigned long long> : public true_type { };
77+
struct is_arithmetic<rcpp_ulong_long_type> : public true_type { };
7678

7779
template<>
78-
struct is_arithmetic<const unsigned long long> : public true_type { };
80+
struct is_arithmetic<const rcpp_ulong_long_type> : public true_type { };
81+
82+
#endif
7983

8084
template<>
8185
struct is_arithmetic<float> : public true_type { };

0 commit comments

Comments
 (0)