Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
c71ff92c
Commit
c71ff92c
authored
Jul 18, 2012
by
Eric Molitor
Committed by
Henrik Nordstrom
Jul 18, 2012
Browse files
Make fel compatible with MacOS
parent
fb4ceae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
fel.c
View file @
c71ff92c
...
...
@@ -27,9 +27,18 @@
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <endian.h>
#include <errno.h>
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>
#define htole32(x) CFSwapInt32HostToLittle(x)
#define le32toh(x) CFSwapInt32LittleToHost(x)
#define htole16(x) CFSwapInt16HostToLittle(x)
#define le16toh(x) CFSwapInt16LittleToHost(x)
#elif
#include <endian.h>
#endif
int
errno
;
struct
aw_usb_request
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment