mkboot500: fix compilation on MacOS

code changes limited to L-31-37,
rest is trailing whitespace cleanup

Change-Id: Iaec8f1daec5112715085f1a59b0347044fcbbc09
This commit is contained in:
Christian Soffke 2024-12-17 13:33:35 +01:00
parent cede12f197
commit aeb4b6c34a

View file

@ -28,6 +28,13 @@
#include <inttypes.h>
#include <sys/stat.h>
#include "mr500.h"
#ifdef __APPLE__
#include <libkern/OSByteOrder.h>
#define htole32(x) OSSwapHostToLittleInt32(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define le32toh(x) OSSwapLittleToHostInt32(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)
#endif
/* Notes about firmware:
* These notes are based on the work and observations of Shirour on the M:Robe