Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will remove
__USE_MINGW_ANSI_STDIO
from the stub generation code.__USE_MINGW_ANSI_STDIO
must be defined before any other relevant headers are included. This is often not guaranteed because custom headers are added before calls toCstubs.write_c
. I've instead added thectypes_printf
macro for usage inside generated code, which translates to__mingw_printf
for mingw, andprintf
otherwise. (Background: On windows one can link again various version of the c stdlib (crt). They are all not really compatible to C99. Instead of adding and testing workarounds for each version, the compatibility layer of mingw is used. This layer is normally enabled by defining__USE_MINGW_ANSI_STDIO
or by certain compiler switches.)The second commit removes a dll dependency introduced by OCaml 4.07 and adds further workarounds to the test suite.