network_core.h
changeset 3294 6aab2bd8b924
parent 2741 65d4de069014
child 4033 20c942fbe0c0
equal deleted inserted replaced
3293:01f612b552fc 3294:6aab2bd8b924
     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>