janstary / sox

resurrect SoX
Other
2 stars 1 forks source link

detect byte-swapping functions #38

Open janstary opened 1 month ago

janstary commented 1 month ago

sox_i.h checks if HAVE_BYTESWAP_H, in which case it uses bswap_16 and bswap_32. This seems to be specific to linux. On _MSC_VER, it uses _byteswap_ushort.

Drop this dance and use the standard POSIX functions from the htobe16 family instead.