Skip to content

Uppercase windows.h include fails build in case-sensitive OS #6365

@grandchild

Description

@grandchild

# include <Windows.h>

When cross-compiling v1.5.0 with MinGW-w64 on Linux, I'm running into an error:

src/libgit2-1.5.0/src/cli/opt.c:26:11: fatal error: Windows.h: No such file or directory
   26 | # include <Windows.h>
      |           ^~~~~~~~~~~
compilation terminated.

It should be all-lowercase windows.h.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions