Skip to content

Commit

Permalink
fixup??? mingw: make the dirent implementation pluggable
Browse files Browse the repository at this point in the history
This is necessary because the win+Meson build now uses a GCC that seems
to link to `libmingwex.a` under certain circumstances (a static libcurl
build seemingly falling into that category) where `opendir` is already
defined as a variable. _sigh_

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Feb 26, 2025
1 parent 0363be3 commit 333f2b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/win32/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ typedef struct DIR {
/* default dirent implementation */
extern DIR *dirent_opendir(const char *dirname);

#define opendir git_opendir

/* current dirent implementation */
extern DIR *(*opendir)(const char *dirname);

Expand Down

0 comments on commit 333f2b2

Please sign in to comment.