Ticket #19386: patch-bytes.h.2.diff
File patch-bytes.h.2.diff, 727 bytes (added by vike2000, 16 years ago) |
---|
-
bytes.h
old new 34 34 | (((x) & 0x00000000000000ffull) << 56)) 35 35 36 36 #else 37 38 #ifdef __APPLE__ 39 #include <machine/endian.h> 40 #define __BIG_ENDIAN BIG_ENDIAN 41 #define __LITTLE_ENDIAN LITTLE_ENDIAN 42 43 #include <libkern/OSByteOrder.h> 44 #define __BYTE_ORDER BYTE_ORDER 45 #define __FLOAT_WORD_ORDER BYTE_ORDER 46 47 #define __bswap_32 OSSwapConstInt32 48 #define __bswap_64 OSSwapConstInt64 49 50 #else 37 51 #include <endian.h> 38 52 #include <byteswap.h> 39 53 … … 41 55 typedef __uint32_t uint32_t; 42 56 #endif 43 57 58 #endif 59 44 60 #if !defined(__BYTE_ORDER) || !defined(__FLOAT_WORD_ORDER) 45 61 #error "Undefined byte and float word order!" 46 62 #endif