21
21
#ifndef HEADER_PUGIXML_HPP
22
22
#define HEADER_PUGIXML_HPP
23
23
24
- #ifndef PUGIXML_EXPORT_MODULE
25
24
// Include stddef.h for size_t and ptrdiff_t
26
- # include < stddef.h>
25
+ #include < stddef.h>
27
26
28
27
// Include exception header for XPath
29
- # if !defined(PUGIXML_NO_XPATH) && !defined(PUGIXML_NO_EXCEPTIONS)
30
- # include < exception>
31
- # endif
28
+ #if !defined(PUGIXML_NO_XPATH) && !defined(PUGIXML_NO_EXCEPTIONS)
29
+ # include < exception>
30
+ #endif
32
31
33
32
// Include STL headers
34
- # ifndef PUGIXML_NO_STL
35
- # include < iterator>
36
- # include < iosfwd>
37
- # include < string>
38
- # endif
33
+ #ifndef PUGIXML_NO_STL
34
+ # include < iterator>
35
+ # include < iosfwd>
36
+ # include < string>
39
37
#endif
40
38
41
39
// Check if std::string_view is available
48
46
#endif
49
47
50
48
// Include string_view if appropriate
51
- #ifndef PUGIXML_EXPORT_MODULE
52
- # ifdef PUGIXML_HAS_STRING_VIEW
53
- # include < string_view>
54
- # endif
49
+ #ifdef PUGIXML_HAS_STRING_VIEW
50
+ # include < string_view>
55
51
#endif
56
52
57
53
// Macro for deprecated features
138
134
# endif
139
135
#endif
140
136
141
- #ifndef PUGIXML_CONSTEXPR11
137
+ // If C++ is 2011 or higher, add 'constexpr' qualifiers
138
+ #ifndef PUGIXML_CONSTEXPR
142
139
# if __cplusplus >= 201103
143
- # define PUGIXML_CONSTEXPR11 constexpr
140
+ # define PUGIXML_CONSTEXPR constexpr
144
141
# elif defined(_MSC_VER) && _MSC_VER >= 1910
145
- # define PUGIXML_CONSTEXPR11 constexpr
142
+ # define PUGIXML_CONSTEXPR constexpr
146
143
# else
147
- # define PUGIXML_CONSTEXPR11
144
+ # define PUGIXML_CONSTEXPR const
148
145
# endif
149
146
#endif
150
147
151
- // If C++ is 2011 or higher, add 'constexpr' qualifiers to constants
152
- // If C++ is 2017 or higher, add 'inline' qualifiers to constants
153
- // inline constexpr is required for C++20 module
148
+ // If C++ is 2017 or higher, add 'inline' qualifiers for constants
149
+ // required for C++20 module
154
150
#ifndef PUGIXML_CONSTANT
155
- # if __cplusplus >= 201703
156
- # define PUGIXML_CONSTANT inline PUGIXML_CONSTEXPR11
157
- # elif __cplusplus >= 201103
158
- # define PUGIXML_CONSTANT PUGIXML_CONSTEXPR11
159
- # else
160
- # define PUGIXML_CONSTANT const
161
- # endif
151
+ # if __cplusplus >= 201703
152
+ # define PUGIXML_CONSTANT inline PUGIXML_CONSTEXPR
153
+ # else
154
+ # define PUGIXML_CONSTANT PUGIXML_CONSTEXPR
155
+ # endif
162
156
#endif
163
157
164
158
// Character interface macros
170
164
# define PUGIXML_CHAR char
171
165
#endif
172
166
173
- #ifndef PUGIXML_MODULE_EXPORT
174
- # define PUGIXML_MODULE_EXPORT
175
- #endif
176
-
177
167
namespace pugi
178
168
{
179
169
// Character type used for all internal storage and operations; depends on PUGIXML_WCHAR_MODE
@@ -191,7 +181,7 @@ namespace pugi
191
181
}
192
182
193
183
// The PugiXML namespace
194
- PUGIXML_MODULE_EXPORT namespace pugi
184
+ namespace pugi
195
185
{
196
186
// Tree node types
197
187
enum xml_node_type
0 commit comments