patch-2.4.0-test11 linux/include/asm-ppc/byteorder.h
Next file: linux/include/asm-ppc/cache.h
Previous file: linux/include/asm-ppc/bootinfo.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sat Nov 11 18:23:10 2000
- Orig file:
v2.4.0-test10/linux/include/asm-ppc/byteorder.h
- Orig date:
Tue Oct 31 12:42:27 2000
diff -u --recursive --new-file v2.4.0-test10/linux/include/asm-ppc/byteorder.h linux/include/asm-ppc/byteorder.h
@@ -7,6 +7,7 @@
#include <asm/types.h>
+#ifdef __KERNEL__
#ifdef __GNUC__
extern __inline__ unsigned ld_le16(const volatile unsigned short *addr)
@@ -72,11 +73,13 @@
#define __arch__swab16s(addr) st_le16(addr,*addr)
#define __arch__swab32s(addr) st_le32(addr,*addr)
-#endif /* __GNUC__ */
-
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#ifndef __STRICT_ANSI__
#define __BYTEORDER_HAS_U64__
#endif
+
+#endif /* __GNUC__ */
+#endif /* __KERNEL__ */
+
#include <linux/byteorder/big_endian.h>
#endif /* _PPC_BYTEORDER_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)