Skip to content

Commit

Permalink
use string for iOS
Browse files Browse the repository at this point in the history
Signed-off-by: liqunfu <[email protected]>
  • Loading branch information
liqunfu committed Mar 22, 2024
1 parent 7c4791c commit f758248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/framework/tensorprotoutils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ T resolve_external_data_location(
}
#if defined(__APPLE__) && TARGET_OS_IPHONE
// workaround 'wstring' is unavailable: introduced in iOS 13.0
auto relative_path = ToWideString(file_path.lexically_normal().make_preferred().u8string());
auto relative_path = ToWideString(file_path.lexically_normal().make_preferred().string());
#else
auto relative_path = file_path.lexically_normal().make_preferred().wstring();
#endif
Expand Down

0 comments on commit f758248

Please sign in to comment.