diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-09-23 04:32:17 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-09-23 04:32:17 +0000 |
| commit | c0d4804d67d4b1b4d5df4778a1c718a918878050 (patch) | |
| tree | ad7926a9810fc157f35d5f4b75967c4d275920dc /sys/powerpc | |
| parent | 33e2cd4e8d347f9cee7de2158582c998d51f542b (diff) | |
Notes
Diffstat (limited to 'sys/powerpc')
| -rw-r--r-- | sys/powerpc/include/endian.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/powerpc/include/endian.h b/sys/powerpc/include/endian.h index a0f08a057991..5d1c1cacad90 100644 --- a/sys/powerpc/include/endian.h +++ b/sys/powerpc/include/endian.h @@ -95,11 +95,20 @@ __bswap64(__uint64_t _x) ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56))); } -#endif /* __GNUC__ */ - #define __htonl(x) ((__uint32_t)(x)) #define __htons(x) ((__uint16_t)(x)) #define __ntohl(x) ((__uint32_t)(x)) #define __ntohs(x) ((__uint16_t)(x)) +#else /* !__GNUC__ */ + +/* + * No optimizations are available for this compiler. Fall back to + * non-optimized functions by defining the constant usually used to prevent + * redefinition. + */ +#define _BYTEORDER_FUNC_DEFINED + +#endif /* __GNUC__ */ + #endif /* !_MACHINE_ENDIAN_H_ */ |
