Displaying 1 result from an estimated 1 matches for "rcpp_has_long_long_types".
2013 Sep 19
1
Using long long types in C++
...sion__ to disable
warnings that are emitted by -pedantic. So we have something like this:
#if defined(__GNUC__) && defined(__LONG_LONG_MAX__)
__extension__ typedef long long int rcpp_long_long_type;
__extension__ typedef unsigned long long int rcpp_ulong_long_type;
#define RCPP_HAS_LONG_LONG_TYPES
#endif
and for the rest of what we do with these types, we use
rcpp_long_long_type and rcpp_ulong_long_type and hide the code behind
#if defined(RCPP_HAS_LONG_LONG_TYPES)
But apparently this is still not enough and on some versions of gcc
(e.g. 4.7 something), -pedantic still generates the wa...