Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Detect little endianness correctly on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Jun 15, 2020
1 parent 0845290 commit fcf0868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bplist.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ uint64_t UINT_TO_HOST(void* x, uint8_t n)
#if (defined(__LITTLE_ENDIAN__) \
&& !defined(__FLOAT_WORD_ORDER__)) \
|| (defined(__FLOAT_WORD_ORDER__) \
&& __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__)
&& __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__) \
|| (defined(_MSC_VER) && (REG_DWORD == REG_DWORD_LITTLE_ENDIAN))
#define float_bswap64(x) bswap64(x)
#define float_bswap32(x) bswap32(x)
#else
Expand Down

0 comments on commit fcf0868

Please sign in to comment.