Conversation
|
Thanks! It looks like the CI is failing, I'll dig into this further in a bit and for now I will restart them just to make sure it wasn't a glitch of some sort. |
|
It does appear to have been something external to the PR, so no need to make any changes. We'll evaluate this, thanks! |
|
Your merges from master a month ago broke the MinGW build in this branch (I haven't tested with latest master merged in): It would be good if there was continuous integration setup for MinGW, e.g. with Appveyor, to detect such issues immediately. Regarding the PR itself, are there any issues with it or can it be merged? |
|
This is odd. According to this: |
DennisHeimbigner
left a comment
There was a problem hiding this comment.
Since we decided to experiment with
_MSC_VER -> _WIN32
this is probably a good start, but only after the
next release.
|
ENOENT is part of errno.h, but I can't see that this file is included in dwinpath.c. It could be that it is transitively included in Linux from other standard library headers (or similarly with MSVC headers) but this doesn't seem to be the case in MinGW and to be honest is not something one should rely one in general. |
|
Looks great, can you rebase so that it can be merged ? |
|
@jschueller This PR has been stale for a while, so I'm only willing to invest time if there's agreement it will be merged. Ideally, the rebasing can also be done by @DennisHeimbigner or @WardF, similar to how they've done it before in this PR. |
|
Is it possible to do the ming build on a standard Ubuntu linux box? If so, I can set up a CI run to ensure that this continues to work. |
|
totally, see https://github.com/stevengj/nlopt/blob/master/.travis.yml |
|
I've rebased and am prepping it for merge, but I see a failure I will follow up on when the other CI finishes. |
|
it seems struct MagicFile has moved to dinfermodel.c, you need to rebase the changes to dfile.c against the current master |
This addresses #1105.
It also cleans up some redundant checks. E.g.
if defined(_WIN32) || defined(_WIN64)is equivalent toif defined(_WIN32)because even in 64 bit mode,_WIN32is defined as well.In memio.c I had to make one exception and use
#if defined (_WIN32) && !defined(__MINGW32__)as in this case mingw doesn't expose this particular Windows API function.