comparison src/timeconv.c @ 118:0f1492b7fe8b

patch from Fridrich Strba for building on mingw and general cleanup of autoconf files add processing for pst files of type 0x0f start adding support for properly building and installing libpst.so and the header files required to use it. remove version.h since the version number is now in config.h more const correctness issues regarding getopt()
author Carl Byington <carl@five-ten-sg.com>
date Sat, 31 Jan 2009 12:12:36 -0800
parents 987aa872294e
children bdb38b434c0a
comparison
equal deleted inserted replaced
117:0a3d854b53f6 118:0f1492b7fe8b
9 * It will make the whole project fail to compile 9 * It will make the whole project fail to compile
10 * There are functions in libpst.c to handle the dates 10 * There are functions in libpst.c to handle the dates
11 * Do not use this one 11 * Do not use this one
12 */ 12 */
13 13
14 #ifndef _WIN32
15
14 #include <time.h> 16 #include <time.h>
17 #include "define.h"
18 #include "common.h"
15 #include "timeconv.h" 19 #include "timeconv.h"
16 20
17 char * fileTimeToAscii (const FILETIME *filetime) { 21 char * fileTimeToAscii (const FILETIME *filetime) {
18 time_t t1; 22 time_t t1;
19 23
119 /* Do not replace this by << 32, it gives a compiler warning and it does 123 /* Do not replace this by << 32, it gives a compiler warning and it does
120 not work. */ 124 not work. */
121 return ((((time_t)a2) << 16) << 16) + (a1 << 16) + a0; 125 return ((((time_t)a2) << 16) << 16) + (a1 << 16) + a0;
122 #endif 126 #endif
123 } 127 }
128
129 #endif /* !_WIN32 */