aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/qpdf-c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/qpdf-c.h')
-rw-r--r--include/qpdf/qpdf-c.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h
index ef4c4c6b..a006c22b 100644
--- a/include/qpdf/qpdf-c.h
+++ b/include/qpdf/qpdf-c.h
@@ -63,7 +63,11 @@
#include <qpdf/DLL.h>
#include <qpdf/Constants.h>
-#include <fcntl.h>
+#ifdef _WIN32
+# include <io.h>
+#else
+# include <fcntl.h>
+#endif
#ifdef __cplusplus
extern "C" {