Ignore:
Timestamp:
Jun 19, 2013 6:47:43 AM (11 years ago)
Author:
riza
Message:

Re #1680: Add initial support for Win64

File:
1 edited

Legend:

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

    r3752 r4537  
    5050                            PJ_LOG_HAS_SPACE | PJ_LOG_HAS_THREAD_SWC | 
    5151                            PJ_LOG_HAS_INDENT 
    52 #if defined(PJ_WIN32) && PJ_WIN32!=0 
     52#if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ 
     53    (defined(PJ_WIN64) && PJ_WIN64!=0) 
    5354                            | PJ_LOG_HAS_COLOR 
    5455#endif 
     
    104105{ 
    105106    if (indent < 0) indent = 0; 
    106     pj_thread_local_set(thread_indent_tls_id, (void*)(long)indent); 
     107    pj_thread_local_set(thread_indent_tls_id, (void*)(pj_ssize_t)indent); 
    107108} 
    108109 
    109110static int log_get_raw_indent() 
    110111{ 
    111     return (long)pj_thread_local_get(thread_indent_tls_id); 
     112    return (long)(pj_ssize_t)pj_thread_local_get(thread_indent_tls_id); 
    112113} 
    113114 
     
    268269    if (thread_suspended_tls_id != -1)  
    269270    { 
    270         pj_thread_local_set(thread_suspended_tls_id, (void*)PJ_TRUE); 
     271        pj_thread_local_set(thread_suspended_tls_id,  
     272                            (void*)(pj_ssize_t)PJ_TRUE); 
    271273    }  
    272274    else 
     
    379381    if (log_decor & PJ_LOG_HAS_SENDER) { 
    380382        enum { SENDER_WIDTH = 14 }; 
    381         int sender_len = strlen(sender); 
     383        pj_size_t sender_len = strlen(sender); 
    382384        if (pre!=log_buffer) *pre++ = ' '; 
    383385        if (sender_len <= SENDER_WIDTH) { 
     
    395397        enum { THREAD_WIDTH = 12 }; 
    396398        const char *thread_name = pj_thread_get_name(pj_thread_this()); 
    397         int thread_len = strlen(thread_name); 
     399        pj_size_t thread_len = strlen(thread_name); 
    398400        *pre++ = ' '; 
    399401        if (thread_len <= THREAD_WIDTH) { 
     
    434436#endif 
    435437 
    436     len = pre - log_buffer; 
     438    len = (int)(pre - log_buffer); 
    437439 
    438440    /* Print the whole message to the string log_buffer. */ 
Note: See TracChangeset for help on using the changeset viewer.