File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1818#include <string.h>
1919#include <inttypes.h>
2020#ifdef __APPLE__
21- # include <machine/endian.h>
21+ # include <libkern/OSByteOrder.h>
22+
23+ # define le16toh (x ) OSSwapLittleToHostInt16(x)
24+ # define le32toh (x ) OSSwapLittleToHostInt32(x)
25+ # define le64toh (x ) OSSwapLittleToHostInt64(x)
2226#else
23- # include <endian.h>
27+ # include <endian.h>
2428#endif
2529
2630#include "libyang.h"
Original file line number Diff line number Diff line change 1919#include <assert.h>
2020#include <stdint.h>
2121#ifdef __APPLE__
22- # include <machine/endian.h>
22+ # include <libkern/OSByteOrder.h>
23+ # define htole64 (x ) OSSwapHostToLittleInt64(x)
2324#else
24- # include <endian.h>
25+ # include <endian.h>
2526#endif
2627
2728#include "common.h"
You can’t perform that action at this time.
0 commit comments