Commit 3cd123e9f481a1df6edb025ca02c28b796c06a57

Edward Thomson 2019-06-15T21:56:53

win32: define DWORD_MAX if it's not defined MinGW does not define DWORD_MAX. Specify it when it's not defined.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index 43f2fb1..7fc6b70 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -48,6 +48,10 @@
 # define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
 #endif
 
+#ifndef DWORD_MAX
+# define DWORD_MAX 0xffffffff
+#endif
+
 static const char *prefix_https = "https://";
 static const char *upload_pack_service = "upload-pack";
 static const char *upload_pack_ls_service_url = "/info/refs?service=git-upload-pack";