Correctly determine endianness on the specific platform using `endian.h' header available at least on GCC. Must be verified for other platforms and compilers.
Thanks for the patch! FWIW we have moved patch review to GitLab; consider abandoning this and re-submitting it as a merge request at https://invent.kde.org/frameworks/kwallet/-/merge_requests
Here's some documentation: https://community.kde.org/Infrastructure/GitLab
Hi @ngraham Thanks for letting me know! I've opened the PR over on gitlab: https://invent.kde.org/frameworks/kwallet/-/merge_requests/1. It must be quite a mission getting everyone over to new platforms 😓 😄