examples: fix builds on windows

This commit is contained in:
Yuguo Zhang
2026-01-08 12:16:33 +08:00
parent 089288946e
commit 31fb66917e
2 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,10 @@
#include <pdfio.h> #include <pdfio.h>
#include <pdfio-content.h> #include <pdfio-content.h>
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#endif
// //

View File

@@ -25,6 +25,7 @@
#include <math.h> #include <math.h>
#ifdef _WIN32 #ifdef _WIN32
# include <io.h> # include <io.h>
# include <fcntl.h>
#else #else
# include <unistd.h> # include <unistd.h>
#endif // _WIN32 #endif // _WIN32