Skip to content

Commit 08ba4b1

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? mingw: make the dirent implementation pluggable
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]>
1 parent 9ce4d70 commit 08ba4b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/win32/dirent.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ typedef struct DIR {
2323
/* default dirent implementation */
2424
extern DIR *dirent_opendir(const char *dirname);
2525

26+
#define opendir git_opendir
27+
2628
/* current dirent implementation */
2729
extern DIR *(*opendir)(const char *dirname);
2830

0 commit comments

Comments
 (0)