Ignore:
Timestamp:
Mar 2, 2011 10:53:24 AM (11 years ago)
Author:
ming
Message:

Re #1202: Fixed compilation preprocessor for os_info so that it's more robust across various device and simulator SDKs.

File:
1 edited

Legend:

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

    r3433 r3436  
    140140#if defined(PJ_HAS_UNAME) && PJ_HAS_UNAME 
    141141    #if defined(PJ_DARWINOS) && PJ_DARWINOS != 0 && TARGET_OS_IPHONE && \ 
    142         TARGET_IPHONE_SIMULATOR == 0 
     142        (!defined TARGET_IPHONE_SIMULATOR || TARGET_IPHONE_SIMULATOR == 0) 
    143143    { 
    144144        pj_str_t buf = {si_buffer + PJ_SYS_INFO_BUFFER_SIZE - left, left}; 
Note: See TracChangeset for help on using the changeset viewer.