summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2013-01-02 16:27:22 +0100
committerMichael Schubert <schu@schu.io>2013-01-02 16:28:08 +0100
commit2e40c616c7ef3dc4f34ab445e4cba2c127e7522c (patch)
treeb51f71485774d26a961015695c6ca76f8476e51a
parent036e81f72613e59fdf344af57ed0a381ade356b0 (diff)
downloadlibgit2-2e40c616c7ef3dc4f34ab445e4cba2c127e7522c.tar.gz
path: ifdef GIT_WIN32 looks_like_network_computer_name()
-rw-r--r--src/path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c
index dd6bb70ad..1b1f554c7 100644
--- a/src/path.c
+++ b/src/path.c
@@ -19,6 +19,7 @@
#define LOOKS_LIKE_DRIVE_PREFIX(S) (git__isalpha((S)[0]) && (S)[1] == ':')
+#ifdef GIT_WIN32
static bool looks_like_network_computer_name(const char *path, int pos)
{
if (pos < 3)
@@ -34,6 +35,7 @@ static bool looks_like_network_computer_name(const char *path, int pos)
return true;
}
+#endif
/*
* Based on the Android implementation, BSD licensed.