Skip to content

Commit 3cd123e

Browse files
committed
win32: define DWORD_MAX if it's not defined
MinGW does not define DWORD_MAX. Specify it when it's not defined.
1 parent d93b0aa commit 3cd123e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/transports/winhttp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
4949
#endif
5050

51+
#ifndef DWORD_MAX
52+
# define DWORD_MAX 0xffffffff
53+
#endif
54+
5155
static const char *prefix_https = "https://";
5256
static const char *upload_pack_service = "upload-pack";
5357
static const char *upload_pack_ls_service_url = "/info/refs?service=git-upload-pack";

0 commit comments

Comments
 (0)