File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 205
205
# endif
206
206
#endif
207
207
208
- #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L
209
- # define PYBIND11_HAS_U8STRING
210
- #endif
211
-
212
208
#include < Python.h>
213
209
#if PY_VERSION_HEX < 0x03060000
214
210
# error "PYTHON < 3.6 IS UNSUPPORTED. pybind11 v2.9 was the last to support Python 2 and 3.5."
259
255
# endif
260
256
#endif
261
257
258
+ // Must be after including <version> or one of the other headers specified by the standard
259
+ #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L
260
+ # define PYBIND11_HAS_U8STRING
261
+ #endif
262
+
262
263
// #define PYBIND11_STR_LEGACY_PERMISSIVE
263
264
// If DEFINED, pybind11::str can hold PyUnicodeObject or PyBytesObject
264
265
// (probably surprising and never documented, but this was the
You can’t perform that action at this time.
0 commit comments