Skip to content

Commit 403a196

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? win32(long path support): leave drive-less absolute paths intact
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent dc854e2 commit 403a196

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compat/mingw.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ int mingw_core_config(const char *var, const char *value,
330330
return 0;
331331
}
332332

333+
static inline int is_wdir_sep(wchar_t wchar)
334+
{
335+
return wchar == L'/' || wchar == L'\\';
336+
}
337+
333338
static const wchar_t *make_relative_to(const wchar_t *path,
334339
const wchar_t *relative_to, wchar_t *out,
335340
size_t size)
@@ -501,11 +506,6 @@ static int create_phantom_symlink(wchar_t *wtarget, wchar_t *wlink)
501506
return 0;
502507
}
503508

504-
static inline int is_wdir_sep(wchar_t wchar)
505-
{
506-
return wchar == L'/' || wchar == L'\\';
507-
}
508-
509509
/* Normalizes NT paths as returned by some low-level APIs. */
510510
static wchar_t *normalize_ntpath(wchar_t *wbuf)
511511
{

0 commit comments

Comments
 (0)