Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7435


Ignore:
Timestamp:
Sep 12, 2010, 10:56:19 PM (14 years ago)
Author:
landauf
Message:

build fixes for MinGW

Location:
code/branches/ipv6/src/external/enet
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/external/enet/CMakeLists.txt

    r7391 r7435  
    2929    include/enet/win32.h
    3030
     31    win32.c
     32
    3133COMPILATION_BEGIN ENetCompilation.c
    3234    callbacks.c
     
    3840    protocol.c
    3941    unix.c
    40     win32.c
    4142COMPILATION_END
    4243)
  • code/branches/ipv6/src/external/enet/include/enet/enet.h

    r7397 r7435  
    6060
    6161#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) */
     62static const ENetHostAddress ENET_HOST_ANY = ENET_HOST_ANY_INIT;                           /**< specifies the default server host (global constant variable) */
    6363#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) */
     64static const ENetHostAddress ENET_IPV4MAPPED_PREFIX = ENET_IPV4MAPPED_PREFIX_INIT;         /**< specifies the IPv4-mapped IPv6 prefix (global constant variable) */
    6565#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) */
     66static const ENetHostAddress ENET_HOST_BROADCAST = ENET_HOST_BROADCAST_INIT;               /**< specifies a IPv4 subnet-wide broadcast (global constant variable) */
    6767enum {
    6868    ENET_IPV4MAPPED_PREFIX_LEN = 12,                                                       /**< specifies the length of the IPv4-mapped IPv6 prefix */
  • code/branches/ipv6/src/external/enet/protocol.c

    r7397 r7435  
    99#include "enet/time.h"
    1010#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;
    1511
    1612static size_t commandSizes [ENET_PROTOCOL_COMMAND_COUNT] =
  • code/branches/ipv6/src/external/enet/win32.c

    r7433 r7435  
    55#ifdef WIN32
    66
     7#define _WIN32_WINNT 0x0501
     8
    79#include <time.h>
    810#define ENET_BUILDING_LIB 1
     
    127129
    128130    memset(& hints, 0, sizeof (hints));
     131#ifdef AI_ADDRCONFIG
    129132    hints.ai_flags = AI_ADDRCONFIG;
     133#else
     134    hints.ai_flags = 0x0400; // AI_ADDRCONFIG is defined as 0x0400
     135#endif
    130136    hints.ai_family = AF_UNSPEC;
    131137
Note: See TracChangeset for help on using the changeset viewer.