coost
coost copied to clipboard
fix: build failed if support win7
If add define -D_WIN32_WINNT=0x0601 in roder to support run on win7, it miss htnoll and nthll functions, exclude them if support win7.
Log: Fix build issue if support win7.
参考一个官方 https://learn.microsoft.com/zh-cn/cpp/c-runtime-library/reference/byteswap-uint64-byteswap-ulong-byteswap-ushort?view=msvc-170 并用测试代码验证两个版本(win7 和win10)结果一致。
需要手写一个 win7 以下版本的实现
已参考官方写了一个,康康