Closed William65536 closed 5 months ago
Scheduling for a future stable release.
Note that I have NOT tested PDFio with MinGW or any other alternative toolchain for Windows. These definitions are explicitly in place to support building on Windows using the Visual C compiler. Anything else is not supported at this time.
[master f040cc4] Add #define guard to allow MingW to build PDFio; note that MingW is NOT a supported toolchain for PDFio (Issue #66)
Currently pdfio-private.h contains the following three lines:
https://github.com/michaelrsweet/pdfio/blob/6c1db141a105b76ca1fa1b88175ae6a4e1e8c2ee/pdfio-private.h#L41-L43
which override three of the four definitions in io.h when using MinGW on Windows:
The second clause in section 6.10.3 of the ISO C99 Standard mandates that
and section 6.10.3 clause 1 defines the equality of macro bodies as
Even though
cpp
does not necessarily complain about the above violation of the C standard, other tools such as Zig'stranslate-c
do, preventing the user from building pdfio without manually editing the lines in pdfio-private.h.All code of the same form as the definitions in pdfio-private.h should therefore be changed to:
to ensure no conflicting definitions.