From: <dan...@us...> - 2009-05-22 13:22:25
|
Revision: 1318 http://cegcc.svn.sourceforge.net/cegcc/?rev=1318&view=rev Author: dannybackx Date: 2009-05-22 12:25:51 +0000 (Fri, 22 May 2009) Log Message: ----------- Define some macros using "old" / winsock 1.1 values for CE. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/ws2tcpip.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-22 09:56:06 UTC (rev 1317) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-22 12:25:51 UTC (rev 1318) @@ -2,6 +2,8 @@ * include/winsock2.h (DSCP_TRAFFIC_TYPE) : Add typedef for enum. * include/winsock2.h (AF_BT) : Add, copy of AF_BTH. + * include/ws2tcpip.h : Define some macros using "old" winsock 1.1 + values for CE. 2009-05-18 Danny Backx <dan...@us...> Modified: trunk/cegcc/src/w32api/include/ws2tcpip.h =================================================================== --- trunk/cegcc/src/w32api/include/ws2tcpip.h 2009-05-22 09:56:06 UTC (rev 1317) +++ trunk/cegcc/src/w32api/include/ws2tcpip.h 2009-05-22 12:25:51 UTC (rev 1318) @@ -42,6 +42,17 @@ * These are also be defined in winsock.h, * but values have changed for WinSock2 interface */ +#ifdef UNDER_CE +/* Looks like CE needs the "old" values */ +#define IP_TOS 8 +#define IP_TTL 7 +#define IP_MULTICAST_IF 2 +#define IP_MULTICAST_TTL 3 +#define IP_MULTICAST_LOOP 4 +#define IP_ADD_MEMBERSHIP 5 +#define IP_DROP_MEMBERSHIP 6 +#define IP_DONTFRAGMENT 9 +#else #define IP_TOS 3 /* old (winsock 1.1) value 8 */ #define IP_TTL 4 /* old value 7 */ #define IP_MULTICAST_IF 9 /* old value 2 */ @@ -50,6 +61,7 @@ #define IP_ADD_MEMBERSHIP 12 /* old value 5 */ #define IP_DROP_MEMBERSHIP 13 /* old value 6 */ #define IP_DONTFRAGMENT 14 /* old value 9 */ +#endif #define IP_ADD_SOURCE_MEMBERSHIP 15 #define IP_DROP_SOURCE_MEMBERSHIP 16 #define IP_BLOCK_SOURCE 17 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |