Closed iovxw closed 2 years ago
Thanks. Merged.
Reverted. The include is needed for Windows build.
References: https://stackoverflow.com/a/3475677 https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-ntohs
Error log at https://github.com/rime/librime/runs/5065227018?check_suite_focus=true#step:9:87
D:\a\librime\librime\plugins\charcode\src\codepoint_translator.cc(67,13): error C3861: 'ntohs': identifier not found [D:\a\librime\librime\build\plugins\charcode\rime-charcode-objs.vcxproj]
D:\a\librime\librime\plugins\charcode\src\codepoint_translator.cc(85,19): error C3861: 'ntohl': identifier not found [D:\a\librime\librime\build\plugins\charcode\rime-charcode-objs.vcxproj]
This helps Trime https://github.com/osfans/trime/blob/8232e9802b/app/src/main/jni/cmake/RimePlugins.cmake#L40-L44