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

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)