Commit 9f1b2c5cb79526f274c0c72eed56f9da0efb0321

Russell Belfer 2013-06-22T17:22:03

Merge pull request #1668 from csware/WC_ERR_INVALID_CHARS Do not redefine WC_ERR_INVALID_CHARS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/win32/error.c b/src/win32/error.c
index 4a9a063..a62a07e 100644
--- a/src/win32/error.c
+++ b/src/win32/error.c
@@ -12,7 +12,9 @@
 # include <winhttp.h>
 #endif
 
+#ifndef WC_ERR_INVALID_CHARS
 #define WC_ERR_INVALID_CHARS	0x80
+#endif
 
 char *git_win32_get_error_message(DWORD error_code)
 {