Ignore:
Timestamp:
Jul 23, 2010 4:27:32 AM (14 years ago)
Author:
ming
Message:

Re #1104: Fixed iPhone OS version detection in os_auto.h.in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in

    r3238 r3240  
    173173#if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 
    174174#    include "TargetConditionals.h" 
    175 #    if defined(__IPHONE_4_0) && \ 
    176         __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0 
    177 #       define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1 
     175#    if TARGET_OS_IPHONE 
     176#       include "Availability.h" 
     177#       ifdef __IPHONE_4_0 
     178#           define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1 
     179#       endif 
    178180#    endif 
    179181#endif 
Note: See TracChangeset for help on using the changeset viewer.