Mercurial > libpst
diff src/libpst.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 | ed2a260bbb98 |
children | 6395ced2b8b2 |
line wrap: on
line diff
--- a/src/libpst.c Fri Jan 16 15:31:11 2009 -0800 +++ b/src/libpst.c Sat Jan 31 12:12:36 2009 -0800 @@ -4,16 +4,19 @@ * Written by David Smith * dave.s@earthcorp.com */ + #include "define.h" #include "libstrfunc.h" #include "vbuf.h" #include "libpst.h" +#include "common.h" #include "timeconv.h" #define ASSERT(x) { if(!(x)) raise( SIGSEGV ); } #define INDEX_TYPE32 0x0E +#define INDEX_TYPE32A 0x0F // unknown, but assumed to be similar for now #define INDEX_TYPE64 0x17 #define INDEX_TYPE_OFFSET (off_t)0x0A @@ -196,6 +199,7 @@ DEBUG_INFO(("index_type = %i\n", pf->ind_type)); switch (pf->ind_type) { case INDEX_TYPE32 : + case INDEX_TYPE32A : pf->do_read64 = 0; break; case INDEX_TYPE64 : @@ -4472,7 +4476,7 @@ } -#ifdef _MSC_VER +#ifdef _WIN32 char * fileTimeToAscii(const FILETIME* filetime) { time_t t; DEBUG_ENT("fileTimeToAscii"); @@ -4508,7 +4512,7 @@ } -#endif //_MSC_VER +#endif //_WIN32 int pst_stricmp(char *a, char *b) { // compare strings case-insensitive.