Mercurial > libpst
diff src/timeconv.c @ 172:6954d315aaa8
move version-info into main configure.in, and set it properly.
prefix all external symbols in the shared library with pst_ to avoid symbol clashes with other shared libraries.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 04 Apr 2009 16:00:48 -0700 |
parents | fc11b1d1ad34 |
children | b65e8d0a088a |
line wrap: on
line diff
--- a/src/timeconv.c Sun Mar 29 08:51:13 2009 -0700 +++ b/src/timeconv.c Sat Apr 04 16:00:48 2009 -0700 @@ -15,17 +15,17 @@ #include "define.h" -char * fileTimeToAscii (const FILETIME *filetime) { - time_t t1; +char * pst_fileTimeToAscii (const FILETIME *filetime) { + time_t t1; - t1 = fileTimeToUnixTime(filetime, NULL); - return ctime(&t1); + t1 = pst_fileTimeToUnixTime(filetime, NULL); + return ctime(&t1); } -struct tm * fileTimeToStructTM (const FILETIME *filetime) { - time_t t1; - t1 = fileTimeToUnixTime(filetime, NULL); - return gmtime(&t1); +struct tm * pst_fileTimeToStructTM (const FILETIME *filetime) { + time_t t1; + t1 = pst_fileTimeToUnixTime(filetime, NULL); + return gmtime(&t1); } /*********************************************************************** @@ -35,7 +35,7 @@ * If not NULL, 'remainder' contains the fractional part of the filetime, * in the range of [0..9999999] (even if time_t is negative). */ -time_t fileTimeToUnixTime( const FILETIME *filetime, DWORD *remainder ) +time_t pst_fileTimeToUnixTime( const FILETIME *filetime, DWORD *remainder ) { /* Read the comment in the function DOSFS_UnixTimeToFileTime. */ #if USE_LONG_LONG