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