Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7ea409

Browse files
committed
Do not redefine WC_ERR_INVALID_CHARS
WC_ERR_INVALID_CHARS might be already defined by the Windows SDK. Signed-off-by: Sven Strickroth <[email protected]>
1 parent 5d669f0 commit a7ea409

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/win32/error.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# include <winhttp.h>
1313
#endif
1414

15+
#ifndef WC_ERR_INVALID_CHARS
1516
#define WC_ERR_INVALID_CHARS 0x80
17+
#endif
1618

1719
char *git_win32_get_error_message(DWORD error_code)
1820
{

0 commit comments

Comments
 (0)