Commit 26ec6a6d by Michael Schubert

tests-clar: ifdef GIT_WIN32 win helper functions

parent c9e96403
...@@ -28,6 +28,7 @@ void test_checkout_crlf__cleanup(void) ...@@ -28,6 +28,7 @@ void test_checkout_crlf__cleanup(void)
cl_git_sandbox_cleanup(); cl_git_sandbox_cleanup();
} }
#ifdef GIT_WIN32
static void set_config_entry_to(const char *entry_name, bool value) static void set_config_entry_to(const char *entry_name, bool value)
{ {
git_config *cfg; git_config *cfg;
...@@ -42,6 +43,7 @@ static void set_core_autocrlf_to(bool value) ...@@ -42,6 +43,7 @@ static void set_core_autocrlf_to(bool value)
{ {
set_config_entry_to("core.autocrlf", value); set_config_entry_to("core.autocrlf", value);
} }
#endif
void test_checkout_crlf__detect_crlf_autocrlf_false(void) void test_checkout_crlf__detect_crlf_autocrlf_false(void)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment