Commit 26ec6a6db364534077add6bc486cfeefdebfeee8

Michael Schubert 2013-01-24T20:38:01

tests-clar: ifdef GIT_WIN32 win helper functions

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tests-clar/checkout/crlf.c b/tests-clar/checkout/crlf.c
index 259e91c..a4eb2d3 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)
 {