Mercurial > libpst
diff src/pst2ldif.cpp @ 59:7d5c637aaafb
General cleanup and code fixes.
Use autoscan to cleanup our autoconf system.
Use autoconf to detect when we need to use our XGetopt files and other header files.
Decode BCC field.
Fix missing LE32_CPU byte swapping for FILETIME types.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 14 Feb 2008 14:55:32 -0800 |
parents | 034641c26ab9 |
children | 3cb02cb1e6cd |
line wrap: on
line diff
--- a/src/pst2ldif.cpp Wed Feb 06 23:05:56 2008 -0800 +++ b/src/pst2ldif.cpp Thu Feb 14 14:55:32 2008 -0800 @@ -10,42 +10,16 @@ using namespace std; -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <string.h> -#include <ctype.h> -#include <limits.h> -#include <errno.h> - -#ifndef _WIN32 -# include <unistd.h> -# include <sys/stat.h> //mkdir - -// for reading of directory and clearing in function mk_separate_dir -# include <sys/types.h> -# include <dirent.h> -#else -# include <direct.h> -# define chdir _chdir -# define int32_t __int32 -#endif - -#ifndef __GNUC__ -# include "XGetopt.h" -#endif - // needed for std c++ collections #include <set> extern "C" { - #include "libstrfunc.h" // for base64_encoding #include "define.h" + #include "libstrfunc.h" #include "libpst.h" #include "common.h" #include "timeconv.h" #include "lzfu.h" - #include "version.h" } int32_t usage(); @@ -425,7 +399,7 @@ DEBUG_INIT(d_log); DEBUG_REGISTER_CLOSE(); DEBUG_ENT("main"); - RET_DERROR(pst_open(&pstfile, fname, "r"), 1, ("Error opening File\n")); + RET_DERROR(pst_open(&pstfile, fname), 1, ("Error opening File\n")); RET_DERROR(pst_load_index(&pstfile), 2, ("Index Error\n")); pst_load_extended_attributes(&pstfile);