Mercurial > libpst
changeset 212:8e17efed33c1
patch from Fridrich Strba to build on win32
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 08 Jun 2009 13:51:24 -0700 |
parents | 94bde95d7e18 |
children | 4a659f3138b7 |
files | ChangeLog src/define.h src/readpst.c |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jun 08 11:49:39 2009 -0700 +++ b/ChangeLog Mon Jun 08 13:51:24 2009 -0700 @@ -17,6 +17,7 @@ * make nested mime multipart/alternative to hold the text/html parts so the topmost level is almost always multipart/mixed. * the shared library interface should now be thread safe. + * patch from Fridrich Strba to build on win32. LibPST 0.6.37 (2009-04-17) ===============================
--- a/src/define.h Mon Jun 08 11:49:39 2009 -0700 +++ b/src/define.h Mon Jun 08 13:51:24 2009 -0700 @@ -89,6 +89,10 @@ #else #include "XGetopt.h" #endif + #include <process.h> + #undef gmtime_r + #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) + #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) #else #ifdef HAVE_UNISTD_H #include <unistd.h>
--- a/src/readpst.c Mon Jun 08 11:49:39 2009 -0700 +++ b/src/readpst.c Mon Jun 08 13:51:24 2009 -0700 @@ -466,7 +466,11 @@ // force a log file if (!d_log) d_log = "readpst.log"; #endif // defined DEBUG_ALL - DEBUG_INIT(d_log, output_mutex); + #ifdef HAVE_SEMAPHORE_H + DEBUG_INIT(d_log, output_mutex); + #else + DEBUG_INIT(d_log, NULL); + #endif DEBUG_ENT("main"); if (output_mode != OUTPUT_QUIET) printf("Opening PST file and indexes...\n");