diff options
Diffstat (limited to 'util/cbfstool')
-rw-r--r-- | util/cbfstool/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index b5258a3e6d..853e5298a4 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -22,8 +22,10 @@ #include <stdint.h> #include "swab.h" +#ifndef __APPLE__ #define ntohl(x) (host_bigendian?(x):swab32(x)) #define htonl(x) (host_bigendian?(x):swab32(x)) +#endif #define ntohll(x) (host_bigendian?(x):swab64(x)) #define htonll(x) (host_bigendian?(x):swab64(x)) |