Changeset 3436


Ignore:
Timestamp:
Mar 2, 2011 10:53:24 AM (9 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.

Location:
pjproject/trunk/pjlib/src/pj
Files:
2 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}; 
  • pjproject/trunk/pjlib/src/pj/os_info_iphone.m

    r3434 r3436  
    1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1919 */ 
    20 #ifdef TARGET_IPHONE_SIMULATOR == 0 
     20#include "TargetConditionals.h" 
     21 
     22#if !defined TARGET_IPHONE_SIMULATOR || TARGET_IPHONE_SIMULATOR == 0 
    2123 
    2224#include <pj/os.h> 
Note: See TracChangeset for help on using the changeset viewer.