network_core.h
branch0.4.5
changeset 9956 341e963c63c4
parent 2741 011462ebb67b
child 4033 f108c895d7b6
equal deleted inserted replaced
9955:d24647f8227b 9956:341e963c63c4
     9 // =============================
     9 // =============================
    10 // Include standard stuff per OS
    10 // Include standard stuff per OS
    11 
    11 
    12 #ifdef ENABLE_NETWORK
    12 #ifdef ENABLE_NETWORK
    13 
    13 
    14 #ifdef __APPLE__
    14 #if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2)
    15 #include <AvailabilityMacros.h>
       
    16 #if (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2)
       
    17 	// OSX 10.2 don't have socklen_t defined, so we will define it here
    15 	// OSX 10.2 don't have socklen_t defined, so we will define it here
    18 	typedef int socklen_t;
    16 	typedef int socklen_t;
    19 #endif
       
    20 #endif
    17 #endif
    21 
    18 
    22 // Windows stuff
    19 // Windows stuff
    23 #if defined(WIN32) || defined(WIN64)
    20 #if defined(WIN32) || defined(WIN64)
    24 #include <winsock2.h>
    21 #include <winsock2.h>