diff options
author | Nikias Bassen | 2013-05-30 16:38:22 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-05-30 16:38:22 +0200 |
commit | e0fe1f58c50ed69dafc00e16250a0c7d31d15461 (patch) | |
tree | 57b371f74aed8e194467c399fbad27b54a170546 /src | |
parent | 8df77c9581be04ff7c518b8dcdd262eb7b8a1ab2 (diff) | |
download | libplist-e0fe1f58c50ed69dafc00e16250a0c7d31d15461.tar.gz libplist-e0fe1f58c50ed69dafc00e16250a0c7d31d15461.tar.bz2 |
bplist: use __FLOAT_WORD_ORDER__ instead of __VFP_FP__ for floating point endianness detection
Diffstat (limited to 'src')
-rw-r--r-- | src/bplist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c index 7893ff5..5db7096 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -73,7 +73,10 @@ enum static void float_byte_convert(uint8_t * address, size_t size) { -#if PLIST_BYTE_ORDER == PLIST_LITTLE_ENDIAN && !defined (__VFP_FP__) +#if (PLIST_BYTE_ORDER == PLIST_LITTLE_ENDIAN \ + && !defined(__FLOAT_WORD_ORDER__)) \ + || (defined(__FLOAT_WORD_ORDER__) \ + && __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__) uint8_t i = 0, j = 0; uint8_t tmp = 0; |