summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2013-01-24 20:38:01 +0100
committerMichael Schubert <schu@schu.io>2013-01-25 13:07:26 +0100
commit26ec6a6db364534077add6bc486cfeefdebfeee8 (patch)
treea0f28699c730ec97eeab9f41d784fb4655d15961
parentc9e9640356f4c56fdb86d3313a5a7dcf282b7391 (diff)
downloadlibgit2-26ec6a6db364534077add6bc486cfeefdebfeee8.tar.gz
tests-clar: ifdef GIT_WIN32 win helper functions
-rw-r--r--tests-clar/checkout/crlf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/checkout/crlf.c b/tests-clar/checkout/crlf.c
index 259e91c9f..a4eb2d3e0 100644
--- a/tests-clar/checkout/crlf.c
+++ b/tests-clar/checkout/crlf.c
@@ -28,6 +28,7 @@ void test_checkout_crlf__cleanup(void)
cl_git_sandbox_cleanup();
}
+#ifdef GIT_WIN32
static void set_config_entry_to(const char *entry_name, bool value)
{
git_config *cfg;
@@ -42,6 +43,7 @@ static void set_core_autocrlf_to(bool value)
{
set_config_entry_to("core.autocrlf", value);
}
+#endif
void test_checkout_crlf__detect_crlf_autocrlf_false(void)
{