Changeset 7435 for code/branches/ipv6/src/external
- Timestamp:
- Sep 12, 2010, 10:56:19 PM (14 years ago)
- Location:
- code/branches/ipv6/src/external/enet
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/external/enet/CMakeLists.txt
r7391 r7435 29 29 include/enet/win32.h 30 30 31 win32.c 32 31 33 COMPILATION_BEGIN ENetCompilation.c 32 34 callbacks.c … … 38 40 protocol.c 39 41 unix.c 40 win32.c41 42 COMPILATION_END 42 43 ) -
code/branches/ipv6/src/external/enet/include/enet/enet.h
r7397 r7435 60 60 61 61 #define ENET_HOST_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } /**< specifies the default server host (macro for variable initialization) */ 62 ENET_API const ENetHostAddress ENET_HOST_ANY;/**< specifies the default server host (global constant variable) */62 static const ENetHostAddress ENET_HOST_ANY = ENET_HOST_ANY_INIT; /**< specifies the default server host (global constant variable) */ 63 63 #define ENET_IPV4MAPPED_PREFIX_INIT { { 0,0,0,0,0,0,0,0,0,0,0xff,0xff,0,0,0,0 } } /**< specifies the IPv4-mapped IPv6 prefix (macro for variable initialization) */ 64 ENET_API const ENetHostAddress ENET_IPV4MAPPED_PREFIX;/**< specifies the IPv4-mapped IPv6 prefix (global constant variable) */64 static const ENetHostAddress ENET_IPV4MAPPED_PREFIX = ENET_IPV4MAPPED_PREFIX_INIT; /**< specifies the IPv4-mapped IPv6 prefix (global constant variable) */ 65 65 #define ENET_HOST_BROADCAST_INIT { { 0,0,0,0,0,0,0,0,0,0,0xff,0xff,0xff,0xff,0xff,0xff } } /**< specifies a IPv4 subnet-wide broadcast (macro for variable initialization) */ 66 ENET_API const ENetHostAddress ENET_HOST_BROADCAST;/**< specifies a IPv4 subnet-wide broadcast (global constant variable) */66 static const ENetHostAddress ENET_HOST_BROADCAST = ENET_HOST_BROADCAST_INIT; /**< specifies a IPv4 subnet-wide broadcast (global constant variable) */ 67 67 enum { 68 68 ENET_IPV4MAPPED_PREFIX_LEN = 12, /**< specifies the length of the IPv4-mapped IPv6 prefix */ -
code/branches/ipv6/src/external/enet/protocol.c
r7397 r7435 9 9 #include "enet/time.h" 10 10 #include "enet/enet.h" 11 12 const ENetHostAddress ENET_HOST_ANY = ENET_HOST_ANY_INIT;13 const ENetHostAddress ENET_IPV4MAPPED_PREFIX = ENET_IPV4MAPPED_PREFIX_INIT;14 const ENetHostAddress ENET_HOST_BROADCAST = ENET_HOST_BROADCAST_INIT;15 11 16 12 static size_t commandSizes [ENET_PROTOCOL_COMMAND_COUNT] = -
code/branches/ipv6/src/external/enet/win32.c
r7433 r7435 5 5 #ifdef WIN32 6 6 7 #define _WIN32_WINNT 0x0501 8 7 9 #include <time.h> 8 10 #define ENET_BUILDING_LIB 1 … … 127 129 128 130 memset(& hints, 0, sizeof (hints)); 131 #ifdef AI_ADDRCONFIG 129 132 hints.ai_flags = AI_ADDRCONFIG; 133 #else 134 hints.ai_flags = 0x0400; // AI_ADDRCONFIG is defined as 0x0400 135 #endif 130 136 hints.ai_family = AF_UNSPEC; 131 137
Note: See TracChangeset
for help on using the changeset viewer.