aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-25 16:51:44 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-25 16:51:44 +0200
commit1a3e88ca099bb066a61dcfd0711fdb3b3bfe3eb0 (patch)
tree4b82d8e770e1ce337e1045c138c0c3ea6b8338de
parentfb14dc5893ba7d58c0ef9d9798c5bf9f5c0c4943 (diff)
downloadqpdf-1a3e88ca099bb066a61dcfd0711fdb3b3bfe3eb0.tar.zst
Fix large file support for 32-bit Linux
-rw-r--r--libqpdf/Pl_StdioFile.cc1
-rw-r--r--libqpdf/QPDF.cc1
-rw-r--r--libqpdf/QPDFWriter.cc1
-rw-r--r--qpdf/test_large_file.cc6
4 files changed, 9 insertions, 0 deletions
diff --git a/libqpdf/Pl_StdioFile.cc b/libqpdf/Pl_StdioFile.cc
index e87de10c..bd56ac61 100644
--- a/libqpdf/Pl_StdioFile.cc
+++ b/libqpdf/Pl_StdioFile.cc
@@ -1,3 +1,4 @@
+#include <qpdf/qpdf-config.h> // include first for large file support
#include <qpdf/Pl_StdioFile.hh>
#include <qpdf/QUtil.hh>
#include <stdexcept>
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index 743ba93b..b4bad4f2 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -1,3 +1,4 @@
+#include <qpdf/qpdf-config.h> // include first for large file support
#include <qpdf/QPDF.hh>
#include <vector>
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 22d0b6ea..564133e3 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -1,3 +1,4 @@
+#include <qpdf/qpdf-config.h> // include first for large file support
#include <qpdf/QPDFWriter.hh>
#include <assert.h>
diff --git a/qpdf/test_large_file.cc b/qpdf/test_large_file.cc
index c1ee4060..880877f4 100644
--- a/qpdf/test_large_file.cc
+++ b/qpdf/test_large_file.cc
@@ -1,3 +1,9 @@
+// NOTE: This test program doesn't do anything special to enable large
+// file support. This is important since it verifies that programs
+// don't have to do anything special -- all the work is done
+// internally by the library as long as they don't do their own file
+// I/O.
+
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QPDFObjectHandle.hh>