aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-mod-info.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-20 16:54:07 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-20 21:18:14 +0200
commitb856379370809cca68cb97b737284ade2c44765c (patch)
tree13b736587831ba3fc745425021a41e35314ae502 /examples/pdf-mod-info.cc
parent92c94e7df230dd86eb46e8edf8e9d92531d5f6ef (diff)
downloadqpdf-b856379370809cca68cb97b737284ade2c44765c.tar.zst
Portability issues: off_t, unlink
New header qpdf/Types.h attempts to make sure size_t and off_t are defined on any platform and in a way that would work with large file support. Additionally, missing header files are included to get unlink.
Diffstat (limited to 'examples/pdf-mod-info.cc')
-rw-r--r--examples/pdf-mod-info.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/pdf-mod-info.cc b/examples/pdf-mod-info.cc
index ef5a280d..84cc8415 100644
--- a/examples/pdf-mod-info.cc
+++ b/examples/pdf-mod-info.cc
@@ -8,6 +8,13 @@
#include <iostream>
#include <string.h>
#include <stdlib.h>
+#ifdef _WIN32
+#include <Windows.h>
+#include <direct.h>
+#include <io.h>
+#else
+#include <unistd.h>
+#endif
static char const* version = "1.1";
static char const* whoami = 0;