File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,22 +33,22 @@ typedef unsigned long long int rcpp_ulong_long_type;
33
33
// (note that __GNUC__ also implies clang, MinGW)
34
34
#elif defined(__GNUC__)
35
35
36
- // check to see if 'long long' can be used as an extension
37
- # if defined(_GLIBCXX_USE_LONG_LONG)
38
-
39
- __extension__ typedef long long int rcpp_long_long_type;
40
- __extension__ typedef unsigned long long int rcpp_ulong_long_type;
41
- # define RCPP_HAS_LONG_LONG_TYPES
42
-
43
36
// check to see if 'long long' is an alias for 'int64_t'
44
- # elif defined(_GLIBCXX_HAVE_INT64_T) && defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG)
37
+ # if defined(_GLIBCXX_HAVE_INT64_T) && defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG)
45
38
# include < stdint.h>
46
39
typedef int64_t rcpp_long_long_type;
47
40
typedef uint64_t rcpp_ulong_long_type;
48
41
# define RCPP_HAS_LONG_LONG_TYPES
49
42
43
+ // check to see if this is an older C++ compiler, but extensions are enabled
44
+ # elif defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__clang__) && defined(__LP64__))
45
+ # if defined(__LONG_LONG_MAX__)
46
+ typedef long long int rcpp_long_long_type;
47
+ typedef unsigned long long int rcpp_ulong_long_type;
48
+ # define RCPP_HAS_LONG_LONG_TYPES
49
+ # endif
50
50
# endif
51
- #endif
52
51
52
+ #endif
53
53
54
54
#endif
You can’t perform that action at this time.
0 commit comments