summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64/include/endian.h')
-rw-r--r--sys/ia64/include/endian.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ia64/include/endian.h b/sys/ia64/include/endian.h
index 2293dde..5b3d978 100644
--- a/sys/ia64/include/endian.h
+++ b/sys/ia64/include/endian.h
@@ -64,7 +64,7 @@
#define BYTE_ORDER _BYTE_ORDER
#endif
-#ifdef __GNUC__
+#if defined(__CC_SUPPORTS___INLINE) && defined(__GNUCLIKE_ASM)
static __inline __uint64_t
__bswap64(__uint64_t _x)
@@ -95,7 +95,7 @@ __bswap16(__uint16_t _x)
#define __ntohl(x) __bswap32(x)
#define __ntohs(x) __bswap16(x)
-#else /* !__GNUC__ */
+#else /* !(__CC_SUPPORTS___INLINE && __GNUCLIKE_ASM) */
/*
* No optimizations are available for this compiler. Fall back to
@@ -104,6 +104,6 @@ __bswap16(__uint16_t _x)
*/
#define _BYTEORDER_FUNC_DEFINED
-#endif /* __GNUC__ */
+#endif /* __CC_SUPPORTS___INLINE && __GNUCLIKE_ASM */
#endif /* !_MACHINE_ENDIAN_H_ */
OpenPOWER on IntegriCloud