summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2013-02-11 09:25:57 -0500
committerPhilip Kelley <phkelley@hotmail.com>2013-02-11 09:25:57 -0500
commit8c29dca6c372cae1c6a97d78252ee1d7ac10673b (patch)
tree23da7da2ebc30c3557b75b00248c750989879bd8 /src/path.c
parenta150cc875da834fc18b2c60fa2cb5580fff532ab (diff)
downloadlibgit2-8c29dca6c372cae1c6a97d78252ee1d7ac10673b.tar.gz
Fix some incorrect MSVC #ifdef's. Fixes #1305
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 5de58cce7..263cf9e7c 100644
--- a/src/path.c
+++ b/src/path.c
@@ -400,7 +400,7 @@ int git_path_fromurl(git_buf *local_path_out, const char *file_url)
if (offset >= len || file_url[offset] == '/')
return error_invalid_local_file_uri(file_url);
-#ifndef _MSC_VER
+#ifndef GIT_WIN32
offset--; /* A *nix absolute path starts with a forward slash */
#endif