Author: cgutman Date: Mon Aug 12 00:45:04 2013 New Revision: 59703
URL: http://svn.reactos.org/svn/reactos?rev=59703&view=rev Log: [TCPIP] - Use common macro for htons - Fail compilation if an unrecognized architecture is found (testing)
Modified: trunk/reactos/drivers/network/tcpip/include/tcpip.h
Modified: trunk/reactos/drivers/network/tcpip/include/tcpip.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/inclu... ============================================================================== --- trunk/reactos/drivers/network/tcpip/include/tcpip.h [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/include/tcpip.h [iso-8859-1] Mon Aug 12 00:45:04 2013 @@ -93,6 +93,8 @@
#else /* i386 */
+#error Unsupported architecture + /* DWORD network to host byte order conversion for other architectures */ #define DN2H(dw) \ (dw) @@ -148,7 +150,7 @@ } TDIEntityInfo;
#ifndef htons -#define htons(x) ((((x) & 0xff) << 8) | (((x) >> 8) & 0xff)) +#define htons(x) WH2N(x) #endif
/* Global variable */