patch-2.4.19 linux-2.4.19/include/linux/byteorder/generic.h
Next file: linux-2.4.19/include/linux/cciss_ioctl.h
Previous file: linux-2.4.19/include/linux/brlvger.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/linux/byteorder/generic.h
- Orig date:
Thu Jan 20 10:48:36 2000
diff -urN linux-2.4.18/include/linux/byteorder/generic.h linux-2.4.19/include/linux/byteorder/generic.h
@@ -157,7 +157,7 @@
extern unsigned short int htons(unsigned short int);
-#if defined(__GNUC__) && (__GNUC__ >= 2) && defined(__OPTIMIZE__)
+#if defined(__GNUC__) && (__GNUC__ >= 2) && defined(__OPTIMIZE__) && !defined(__STRICT_ANSI__)
#define ___htonl(x) __cpu_to_be32(x)
#define ___htons(x) __cpu_to_be16(x)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)