coost icon indicating copy to clipboard operation
coost copied to clipboard

fix: build failed if support win7

Open re2zero opened this issue 1 year ago • 2 comments

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.

re2zero avatar Aug 27 '24 02:08 re2zero

参考一个官方 https://learn.microsoft.com/zh-cn/cpp/c-runtime-library/reference/byteswap-uint64-byteswap-ulong-byteswap-ushort?view=msvc-170 并用测试代码验证两个版本(win7 和win10)结果一致。

re2zero avatar Sep 10 '24 02:09 re2zero

需要手写一个 win7 以下版本的实现

已参考官方写了一个,康康

re2zero avatar Sep 19 '24 01:09 re2zero