Date:        Sun, 14 Sep 2025 15:05:03 -0000 (UTC)
    From:        mlel...@serpens.de (Michael van Elst)
    Message-ID:  <10a6liv$km7$1...@serpens.de>

  | You probably need:
  |
  | #if defined(__APPLE__)
  | #include <machine/endian.h>
  | #endif

That could work, though as the relevant .h file defines static inline
functions which use le16dec() (etc) - it should always be including the
header (or a header) specified to declare those functions, not just
rely upon callers including something which happens to include the
declarations.

So, I would add

        #else
        #include <endian.h>

to the above (at the obvious place).

kre

Reply via email to