Re: byteswap.h not found on 12 and 13
- Reply: Nuno Teixeira : "Re: byteswap.h not found on 12 and 13"
- In reply to: Warner Losh : "Re: byteswap.h not found on 12 and 13"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Mar 2023 11:15:54 UTC
I'm thinking in the best plan to patch port. What about patch it for OSVERSION < 14 that will fix 12 and 13 and when 13.2 is out patching it only for 12. Any thoughts? Warner Losh <imp@bsdimp.com> escreveu no dia sexta, 24/03/2023 à(s) 09:37: > > > On Fri, Mar 24, 2023 at 3:23 AM Floyd, Paul <paulf2718@gmail.com> wrote: > >> >> A modern and standard solution is std::byteswap. >> >> https://en.cppreference.com/w/cpp/numeric/byteswap >> >> According to this >> >> https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B23_library_features >> >> you will need llvm 14 for that. >> > > Which doesn't help OP since they needed 12 and 13 support for existing > software. > Also, that's C++ only, which I don't think helps either. > > I'm glad to see some articulated standards here because when I did endian.h > and byteswap.h, it was a minefield of what can or can't be defined in the > face > of existing use. > > Warner > > >> A+ >> >> Paul >> >> >> >> >> -- Nuno Teixeira FreeBSD Committer (ports)