changeset 163:03fbb0269f3c

fix large file support, some sytems require config.h to be included earlier in the compilation.
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Mar 2009 12:43:31 -0700
parents 6cb85306e28a
children ab384fed78c5
files ChangeLog Doxyfile Makefile.cvs regression/regression-tests.bash src/define.h src/libpst.c
diffstat 6 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Mar 14 19:25:17 2009 -0700
+++ b/ChangeLog	Mon Mar 16 12:43:31 2009 -0700
@@ -2,6 +2,8 @@
 ===============================
 
     * fix fedora 11 type mismatch warning (actually an error in this case).
+    * fix large file support, some sytems require config.h to be included
+      earlier in the compilation.
 
 LibPST 0.6.32 (2009-03-14)
 ===============================
--- a/Doxyfile	Sat Mar 14 19:25:17 2009 -0700
+++ b/Doxyfile	Mon Mar 16 12:43:31 2009 -0700
@@ -423,7 +423,7 @@
 # directories like "/usr/src/myproject". Separate the files or directories
 # with spaces.
 
-INPUT = src
+INPUT = config.h src
 
 # If the value of the INPUT tag contains directories, you can use the
 # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
@@ -958,7 +958,7 @@
 # undefined via #undef or recursively expanded use the := operator
 # instead of the = operator.
 
-PREDEFINED             =
+PREDEFINED             = HAVE_CONFIG_H
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
 # this tag can be used to specify a list of macro names that should be expanded.
--- a/Makefile.cvs	Sat Mar 14 19:25:17 2009 -0700
+++ b/Makefile.cvs	Mon Mar 16 12:43:31 2009 -0700
@@ -8,6 +8,7 @@
 	autoheader
 	automake
 	autoconf
+	./configure >/dev/null
 	rm -rf html.internal
 	doxygen
 	tar cfz libpst.html.tar.gz html.internal
--- a/regression/regression-tests.bash	Sat Mar 14 19:25:17 2009 -0700
+++ b/regression/regression-tests.bash	Mon Mar 16 12:43:31 2009 -0700
@@ -44,13 +44,13 @@
     #../src/getidblock -d -p $fn 0 >$ba.fulldump
     #../src/readpstlog -f I getidblock.log >$ba.fulldump.log
 
-    rm -f dumper
+    #rm -f dumper
 }
 
 
 
 val="valgrind --leak-check=full"
-val=''
+#val=''
 
 pushd ..
 make || exit
--- a/src/define.h	Sat Mar 14 19:25:17 2009 -0700
+++ b/src/define.h	Mon Mar 16 12:43:31 2009 -0700
@@ -8,17 +8,15 @@
 #ifndef DEFINEH_H
 #define DEFINEH_H
 
+#ifdef HAVE_CONFIG_H
+    #include "config.h"
+#endif
+
 #include "libpst.h"
 #include "timeconv.h"
 #include "libstrfunc.h"
 #include "vbuf.h"
 
-
-#ifdef HAVE_CONFIG_H
-    #include "config.h"
-#endif
-
-
 #define DEBUG_MODE_GEN
 #define DEBUGPRINT
 #define DEBUG_MODE_WARN
--- a/src/libpst.c	Sat Mar 14 19:25:17 2009 -0700
+++ b/src/libpst.c	Mon Mar 16 12:43:31 2009 -0700
@@ -3717,7 +3717,6 @@
 }
 
 
-#define PST_PTR_BLOCK_SIZE 0x120
 size_t pst_ff_getID2block(pst_file *pf, uint64_t id2, pst_id2_ll *id2_head, char** buf) {
     size_t ret;
     pst_id2_ll* ptr;