Changeset 313


Ignore:
Timestamp:
Mar 9, 2006 10:21:30 AM (19 years ago)
Author:
bennylp
Message:

Updated MSVC projects to use os_time_win32.c, as os_time_ansi.c caused problems in VC2005

Location:
pjproject/trunk/pjlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/build/pjlib.dsp

    r126 r313  
    266266# Begin Source File 
    267267 
    268 SOURCE=..\src\pj\os_time_ansi.c 
     268SOURCE=..\src\pj\os_time_win32.c 
    269269# End Source File 
    270270# Begin Source File 
  • pjproject/trunk/pjlib/src/pj/os_time_win32.c

    r125 r313  
    104104 
    105105    pj_memset(&st, 0, sizeof(st)); 
    106     st.wYear = pt->year; 
    107     st.wMonth = pt->mon + 1; 
    108     st.wDay = pt->day; 
    109     st.wHour = pt->hour; 
    110     st.wMinute = pt->min; 
    111     st.wSecond = pt->sec; 
    112     st.wMilliseconds = pt->msec; 
     106    st.wYear = (pj_uint16_t) pt->year; 
     107    st.wMonth = (pj_uint16_t) (pt->mon + 1); 
     108    st.wDay = (pj_uint16_t) pt->day; 
     109    st.wHour = (pj_uint16_t) pt->hour; 
     110    st.wMinute = (pj_uint16_t) pt->min; 
     111    st.wSecond = (pj_uint16_t) pt->sec; 
     112    st.wMilliseconds = (pj_uint16_t) pt->msec; 
    113113     
    114114    SystemTimeToFileTime(&st, &ft); 
Note: See TracChangeset for help on using the changeset viewer.