-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of deprecated std::char_traits<unsigned short>::length
Some versions of clang - particularly the one on MacOS - emitted the following warning when compiling javacpp: > `jniNativeLibrary.cpp:314:57: warning: 'char_traits' is deprecated: > char_traits for T not equal to char, wchar_t, char8_t, char16_t or > char32_t is non-standard and is provided for a temporary period. It > will be removed in LLVM 18, so please migrate off of it. > [-Wdeprecated-declarations] return JavaCPP_createStringFromUTF16(env, > ptr, std::char_traits::length(ptr)); This commit fixes that warning by adding a function JavaCPP_stringLength for strings of unsigned short.
- Loading branch information
Showing
1 changed file
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters