@@ -31,9 +31,7 @@ namespace helpers {
31
31
typedef struct {char a[2 ];} CTYPE_SHORT;
32
32
typedef struct {char a[3 ];} CTYPE_INT;
33
33
typedef struct {char a[4 ];} CTYPE_LONG;
34
- #ifdef RCPP_HAS_LONG_LONG_TYPES
35
34
typedef struct {char a[5 ];} CTYPE_LONG_LONG;
36
- #endif
37
35
typedef struct {char a[6 ];} CTYPE_FLOAT;
38
36
typedef struct {char a[7 ];} CTYPE_DOUBLE;
39
37
typedef struct {char a[8 ];} CTYPE_LONG_DOUBLE;
@@ -42,9 +40,7 @@ namespace helpers {
42
40
typedef struct {char a[11 ];} CTYPE_UNSIGNED_SHORT;
43
41
typedef struct {char a[12 ];} CTYPE_UNSIGNED_INT;
44
42
typedef struct {char a[13 ];} CTYPE_UNSIGNED_LONG;
45
- #ifdef RCPP_HAS_LONG_LONG_TYPES
46
43
typedef struct {char a[14 ];} CTYPE_UNSIGNED_LONG_LONG;
47
- #endif
48
44
typedef struct {char a[128 ];} CTYPE_UNKNOWN;
49
45
50
46
template < std::size_t I >
@@ -62,10 +58,8 @@ namespace helpers {
62
58
template <>
63
59
struct ctype_helper < sizeof (CTYPE_LONG) > { typedef long type; static const bool value = true ; };
64
60
65
- #ifdef RCPP_HAS_LONG_LONG_TYPES
66
61
template <>
67
62
struct ctype_helper < sizeof (CTYPE_LONG_LONG) > { typedef rcpp_long_long_type type; static const bool value = true ; };
68
- #endif
69
63
70
64
template <>
71
65
struct ctype_helper < sizeof (CTYPE_FLOAT) > { typedef float type; static const bool value = true ; };
@@ -91,11 +85,8 @@ namespace helpers {
91
85
template <>
92
86
struct ctype_helper < sizeof (CTYPE_UNSIGNED_LONG) > { typedef unsigned long type; static const bool value = true ; };
93
87
94
- #ifdef RCPP_HAS_LONG_LONG_TYPES
95
88
template <>
96
89
struct ctype_helper < sizeof (CTYPE_UNSIGNED_LONG_LONG) > { typedef rcpp_ulong_long_type type; static const bool value = true ; };
97
- #endif
98
-
99
90
100
91
template < typename T >
101
92
struct ctype
@@ -104,9 +95,7 @@ namespace helpers {
104
95
static CTYPE_SHORT test (const short &);
105
96
static CTYPE_INT test (const int &);
106
97
static CTYPE_LONG test (const long &);
107
- #ifdef RCPP_HAS_LONG_LONG_TYPES
108
98
static CTYPE_LONG_LONG test (const rcpp_long_long_type &);
109
- #endif
110
99
static CTYPE_FLOAT test (const float &);
111
100
static CTYPE_DOUBLE test (const double &);
112
101
static CTYPE_LONG_DOUBLE test (const long double &);
@@ -115,9 +104,7 @@ namespace helpers {
115
104
static CTYPE_UNSIGNED_SHORT test (const unsigned short &);
116
105
static CTYPE_UNSIGNED_INT test (const unsigned int &);
117
106
static CTYPE_UNSIGNED_LONG test (const unsigned long &);
118
- #ifdef RCPP_HAS_LONG_LONG_TYPES
119
107
static CTYPE_UNSIGNED_LONG_LONG test (const rcpp_ulong_long_type &);
120
- #endif
121
108
static CTYPE_UNKNOWN test (...);
122
109
123
110
static T make ();
@@ -132,9 +119,7 @@ namespace helpers {
132
119
static CTYPE_SHORT test (const short &);
133
120
static CTYPE_INT test (const int &);
134
121
static CTYPE_LONG test (const long &);
135
- #ifdef RCPP_HAS_LONG_LONG_TYPES
136
122
static CTYPE_LONG_LONG test (const rcpp_long_long_type &);
137
- #endif
138
123
static CTYPE_FLOAT test (const float &);
139
124
static CTYPE_DOUBLE test (const double &);
140
125
static CTYPE_LONG_DOUBLE test (const long double &);
@@ -143,9 +128,7 @@ namespace helpers {
143
128
static CTYPE_UNSIGNED_SHORT test (const unsigned short &);
144
129
static CTYPE_UNSIGNED_INT test (const unsigned int &);
145
130
static CTYPE_UNSIGNED_LONG test (const unsigned long &);
146
- #ifdef RCPP_HAS_LONG_LONG_TYPES
147
131
static CTYPE_UNSIGNED_LONG_LONG test (const rcpp_ulong_long_type &);
148
- #endif
149
132
static CTYPE_UNKNOWN test (...);
150
133
151
134
static T make ();
0 commit comments