Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 416983
Collapse All | Expand All

(-)src/common_interface.old.c (-1 / +15 lines)
Lines 52-58 Link Here
52
#endif /* linux */
52
#endif /* linux */
53
53
54
#elif defined(__sun)
54
#elif defined(__sun)
55
56
#include <sys/byteorder.h>
55
#include <sys/byteorder.h>
57
56
58
#ifdef _BIG_ENDIAN
57
#ifdef _BIG_ENDIAN
Lines 67-72 Link Here
67
# define HTOLE_32(x)   (x)
66
# define HTOLE_32(x)   (x)
68
#endif /* Solaris */
67
#endif /* Solaris */
69
68
69
#elif defined(__APPLE__)
70
#include <libkern/OSByteOrder.h>
71
72
#ifdef __BIG_ENDIAN__
73
# define LETOH_16(x)	OSSwapInt16(x)
74
# define HTOLE_16(x)	OSSwapInt16(x)
75
# define LETOH_32(x)	OSSwapInt32(x)
76
# define HTOLE_32(x)	OSSwapInt32(x)
77
#else
78
# define LETOH_16(x)   (x)
79
# define HTOLE_16(x)   (x)
80
# define LETOH_32(x)   (x)
81
# define HTOLE_32(x)   (x)
82
#endif /* Apple */
83
70
#else
84
#else
71
85
72
#include <sys/endian.h>
86
#include <sys/endian.h>

Return to bug 416983