Commit c71ff92c authored by Eric Molitor's avatar Eric Molitor Committed by Henrik Nordstrom
Browse files

Make fel compatible with MacOS

parent fb4ceae3
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment