diff --git a/science/py-dlib/files/patch-dlib_serialize.h b/science/py-dlib/files/patch-dlib_serialize.h new file mode 100644 index 000000000000..94306df64159 --- /dev/null +++ b/science/py-dlib/files/patch-dlib_serialize.h @@ -0,0 +1,11 @@ +--- dlib/serialize.h.orig 2024-02-17 21:44:22 UTC ++++ dlib/serialize.h +@@ -639,6 +639,8 @@ namespace dlib + USE_DEFAULT_INT_SERIALIZATION_FOR(wchar_t) + #endif + ++ USE_DEFAULT_INT_SERIALIZATION_FOR(char32_t) ++ + // ---------------------------------------------------------------------------------------- + + inline void serialize( diff --git a/science/py-dlib/files/patch-dlib_unicode_unicode.h b/science/py-dlib/files/patch-dlib_unicode_unicode.h new file mode 100644 index 000000000000..4527fdc054b0 --- /dev/null +++ b/science/py-dlib/files/patch-dlib_unicode_unicode.h @@ -0,0 +1,11 @@ +--- dlib/unicode/unicode.h.orig 2024-02-17 21:44:22 UTC ++++ dlib/unicode/unicode.h +@@ -16,7 +16,7 @@ namespace dlib + + // ---------------------------------------------------------------------------------------- + +- using unichar = uint32; ++ using unichar = char32_t; + using ustring = std::basic_string; + + // ----------------------------------------------------------------------------------------