@@ -31,9 +31,7 @@ namespace helpers {
3131 typedef struct {char a[2 ];} CTYPE_SHORT;
3232 typedef struct {char a[3 ];} CTYPE_INT;
3333 typedef struct {char a[4 ];} CTYPE_LONG;
34- #ifdef RCPP_HAS_LONG_LONG_TYPES
3534 typedef struct {char a[5 ];} CTYPE_LONG_LONG;
36- #endif
3735 typedef struct {char a[6 ];} CTYPE_FLOAT;
3836 typedef struct {char a[7 ];} CTYPE_DOUBLE;
3937 typedef struct {char a[8 ];} CTYPE_LONG_DOUBLE;
@@ -42,9 +40,7 @@ namespace helpers {
4240 typedef struct {char a[11 ];} CTYPE_UNSIGNED_SHORT;
4341 typedef struct {char a[12 ];} CTYPE_UNSIGNED_INT;
4442 typedef struct {char a[13 ];} CTYPE_UNSIGNED_LONG;
45- #ifdef RCPP_HAS_LONG_LONG_TYPES
4643 typedef struct {char a[14 ];} CTYPE_UNSIGNED_LONG_LONG;
47- #endif
4844 typedef struct {char a[128 ];} CTYPE_UNKNOWN;
4945
5046 template < std::size_t I >
@@ -62,10 +58,8 @@ namespace helpers {
6258 template <>
6359 struct ctype_helper < sizeof (CTYPE_LONG) > { typedef long type; static const bool value = true ; };
6460
65- #ifdef RCPP_HAS_LONG_LONG_TYPES
6661 template <>
6762 struct ctype_helper < sizeof (CTYPE_LONG_LONG) > { typedef rcpp_long_long_type type; static const bool value = true ; };
68- #endif
6963
7064 template <>
7165 struct ctype_helper < sizeof (CTYPE_FLOAT) > { typedef float type; static const bool value = true ; };
@@ -91,11 +85,8 @@ namespace helpers {
9185 template <>
9286 struct ctype_helper < sizeof (CTYPE_UNSIGNED_LONG) > { typedef unsigned long type; static const bool value = true ; };
9387
94- #ifdef RCPP_HAS_LONG_LONG_TYPES
9588 template <>
9689 struct ctype_helper < sizeof (CTYPE_UNSIGNED_LONG_LONG) > { typedef rcpp_ulong_long_type type; static const bool value = true ; };
97- #endif
98-
9990
10091 template < typename T >
10192 struct ctype
@@ -104,9 +95,7 @@ namespace helpers {
10495 static CTYPE_SHORT test (const short &);
10596 static CTYPE_INT test (const int &);
10697 static CTYPE_LONG test (const long &);
107- #ifdef RCPP_HAS_LONG_LONG_TYPES
10898 static CTYPE_LONG_LONG test (const rcpp_long_long_type &);
109- #endif
11099 static CTYPE_FLOAT test (const float &);
111100 static CTYPE_DOUBLE test (const double &);
112101 static CTYPE_LONG_DOUBLE test (const long double &);
@@ -115,9 +104,7 @@ namespace helpers {
115104 static CTYPE_UNSIGNED_SHORT test (const unsigned short &);
116105 static CTYPE_UNSIGNED_INT test (const unsigned int &);
117106 static CTYPE_UNSIGNED_LONG test (const unsigned long &);
118- #ifdef RCPP_HAS_LONG_LONG_TYPES
119107 static CTYPE_UNSIGNED_LONG_LONG test (const rcpp_ulong_long_type &);
120- #endif
121108 static CTYPE_UNKNOWN test (...);
122109
123110 static T make ();
@@ -132,9 +119,7 @@ namespace helpers {
132119 static CTYPE_SHORT test (const short &);
133120 static CTYPE_INT test (const int &);
134121 static CTYPE_LONG test (const long &);
135- #ifdef RCPP_HAS_LONG_LONG_TYPES
136122 static CTYPE_LONG_LONG test (const rcpp_long_long_type &);
137- #endif
138123 static CTYPE_FLOAT test (const float &);
139124 static CTYPE_DOUBLE test (const double &);
140125 static CTYPE_LONG_DOUBLE test (const long double &);
@@ -143,9 +128,7 @@ namespace helpers {
143128 static CTYPE_UNSIGNED_SHORT test (const unsigned short &);
144129 static CTYPE_UNSIGNED_INT test (const unsigned int &);
145130 static CTYPE_UNSIGNED_LONG test (const unsigned long &);
146- #ifdef RCPP_HAS_LONG_LONG_TYPES
147131 static CTYPE_UNSIGNED_LONG_LONG test (const rcpp_ulong_long_type &);
148- #endif
149132 static CTYPE_UNKNOWN test (...);
150133
151134 static T make ();
0 commit comments