Skip to content

Commit

Permalink
Add #define guard to allow MingW to build PDFio; note that MingW is N…
Browse files Browse the repository at this point in the history
…OT a supported toolchain for PDFio (Issue #66)
  • Loading branch information
michaelrsweet committed Jun 24, 2024
1 parent 2388326 commit f040cc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ v1.3.0 (Month DD, YYYY)
- Added `pdfioFileGetCatalog` API for accessing the root/catalog object of a
PDF file (Issue #67)
- Updated number support to avoid locale issues (Issue #61)
- Updated the PDFio private header to allow compilation with MingW; note that
MingW is NOT a supported toolchain for PDFio (Issue #66)
- Optimized string pool code.


Expand Down
8 changes: 5 additions & 3 deletions pdfio-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
# define unlink _unlink
# define vsnprintf _vsnprintf
# define write _write
# define F_OK 00 // POSIX parameters/flags
# define W_OK 02
# define R_OK 04
# ifndef F_OK
# define F_OK 00 // POSIX parameters/flags
# define W_OK 02
# define R_OK 04
# endif // !F_OK
# define O_RDONLY _O_RDONLY // Map standard POSIX open flags
# define O_WRONLY _O_WRONLY
# define O_CREAT _O_CREAT
Expand Down

0 comments on commit f040cc4

Please sign in to comment.