Changeset 3433


Ignore:
Timestamp:
Mar 2, 2011 2:44:57 AM (14 years ago)
Author:
ming
Message:

Re #1202: Fixed detection for iPhone simulator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_info.c

    r3428 r3433  
    139139     */ 
    140140#if defined(PJ_HAS_UNAME) && PJ_HAS_UNAME 
    141     #if defined(PJ_DARWINOS) && PJ_DARWINOS != 0 && TARGET_OS_IPHONE 
     141    #if defined(PJ_DARWINOS) && PJ_DARWINOS != 0 && TARGET_OS_IPHONE && \ 
     142        TARGET_IPHONE_SIMULATOR == 0 
    142143    { 
    143144        pj_str_t buf = {si_buffer + PJ_SYS_INFO_BUFFER_SIZE - left, left}; 
     
    154155        si.sdk_name = sdk_name; 
    155156 
    156 #ifdef PJ_SDK_NAME 
     157        #ifdef PJ_SDK_NAME 
    157158        pj_memcpy(tmp, PJ_SDK_NAME, pj_ansi_strlen(PJ_SDK_NAME) + 1); 
    158159        si.sdk_ver = parse_version(tmp); 
    159 #endif 
     160        #endif 
    160161    } 
    161162    #else     
Note: See TracChangeset for help on using the changeset viewer.