Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cb4b65

Browse files
author
John Haley
committed
Fix duplicate basenames to support older VS
With Visual Studio versions 2008 and older they ignore the full path to files and only check the basename of the file to find a collision. Additionally, having duplicate basenames can break other build tools like GYP. This fixes libgit2#3356
1 parent f6dedf2 commit 2cb4b65

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "repository.h"
1111
#ifdef GIT_WIN32
1212
#include "win32/posix.h"
13-
#include "win32/buffer.h"
13+
#include "win32/w32_buffer.h"
1414
#include "win32/w32_util.h"
1515
#include "win32/version.h"
1616
#else

src/win32/buffer.c renamed to src/win32/w32_buffer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "common.h"
9-
#include "buffer.h"
9+
#include "w32_buffer.h"
1010
#include "../buffer.h"
1111
#include "utf-conv.h"
1212

@@ -52,4 +52,3 @@ int git_buf_put_w(git_buf *buf, const wchar_t *string_w, size_t len_w)
5252
buf->ptr[buf->size] = '\0';
5353
return 0;
5454
}
55-
File renamed without changes.

0 commit comments

Comments
 (0)