Skip to content

Commit cc35e18

Browse files
committed
Add definition of INTERNET_OPTION_ENABLE_HTTP_PROTOCOL if missing.
Fixes builds with old Windows SDK or MinGW-w64 versions.
1 parent 475d367 commit cc35e18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aws-cpp-sdk-core/source/http/windows/WinINetSyncHttpClient.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ using namespace Aws::Utils::Logging;
3131
static const DWORD HTTP_PROTOCOL_FLAG_HTTP2 = 0x2;
3232
#endif
3333

34+
#ifndef INTERNET_OPTION_ENABLE_HTTP_PROTOCOL
35+
static const DWORD INTERNET_OPTION_ENABLE_HTTP_PROTOCOL = 148;
36+
#endif
37+
3438
static void WinINetEnableHttp2(void* handle)
3539
{
3640
DWORD http2 = HTTP_PROTOCOL_FLAG_HTTP2;

0 commit comments

Comments
 (0)