mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
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:
parent
cede12f197
commit
aeb4b6c34a
1 changed files with 81 additions and 74 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue