File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,11 @@ int Global::SQUASH[4096];
83
83
84
84
int Global::STRETCH[4096 ];
85
85
86
- unordered_set<string> Global::WIN_RESERVED;
87
-
86
+ #if __cplusplus >= 201103L
87
+ unordered_set<string> Global::WIN_RESERVED;
88
+ #else
89
+ set<string> Global::WIN_RESERVED;
90
+ #endif
88
91
89
92
Global::Global ()
90
93
{
@@ -126,7 +129,12 @@ Global::Global()
126
129
" LPT9" , " NUL" , " PRN"
127
130
};
128
131
132
+ #if __cplusplus >= 201103L
129
133
unordered_set<string> reserved_set (reserved, reserved + 27 );
134
+ #else
135
+ set<string> reserved_set (reserved, reserved + 27 );
136
+ #endif
137
+
130
138
WIN_RESERVED = reserved_set;
131
139
#endif
132
140
}
Original file line number Diff line number Diff line change @@ -17,7 +17,12 @@ limitations under the License.
17
17
#ifndef _Global_
18
18
#define _Global_
19
19
20
- #include < unordered_set>
20
+ #if __cplusplus >= 201103L
21
+ #include < unordered_set>
22
+ #else
23
+ #include < set>
24
+ #endif
25
+
21
26
#include < string>
22
27
23
28
#include " types.hpp"
@@ -68,7 +73,11 @@ namespace kanzi {
68
73
static char BASE64_SYMBOLS[];
69
74
static char DNA_SYMBOLS[];
70
75
static char NUMERIC_SYMBOLS[];
76
+ #if __cplusplus >= 201103L
71
77
static std::unordered_set<std::string> WIN_RESERVED;
78
+ #else
79
+ static std::set<std::string> WIN_RESERVED;
80
+ #endif
72
81
};
73
82
74
83
You can’t perform that action at this time.
0 commit comments