diff src/lspst.c @ 48:f66078abed38

more fixes for 64 bit format
author carl
date Fri, 18 Jan 2008 15:07:12 -0800
parents b2a7f2e0926a
children fb3818370dd6
line wrap: on
line diff
--- a/src/lspst.c	Sun Jan 13 12:55:59 2008 -0800
+++ b/src/lspst.c	Fri Jan 18 15:07:12 2008 -0800
@@ -6,7 +6,8 @@
  *
  */
 
-// header file includes
+#include "define.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
@@ -15,7 +16,6 @@
 #include <errno.h>
 
 #include "libpst.h"
-#include "define.h"
 #include "timeconv.h"
 
 struct file_ll {
@@ -154,6 +154,10 @@
 
     if (argc <= 1) DIE(("Missing PST filename.\n"));
 
+    #ifdef DEBUG_ALL
+        // force a log file
+        if (!d_log) d_log = "lspst.log";
+    #endif // defined DEBUG_ALL
     DEBUG_INIT(d_log);
     DEBUG_REGISTER_CLOSE();
     DEBUG_ENT("main");