From 31f1314d387bed574890298ca562c698e2d1ea06 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Wed, 2 Apr 2025 20:40:52 +0300 Subject: [PATCH] Add definition of `INTERNET_OPTION_ENABLE_HTTP_PROTOCOL` if missing. Fixes builds with old Windows SDK or MinGW-w64 versions. --- .../source/http/windows/WinINetSyncHttpClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aws-cpp-sdk-core/source/http/windows/WinINetSyncHttpClient.cpp b/src/aws-cpp-sdk-core/source/http/windows/WinINetSyncHttpClient.cpp index b79caf4440d..caf9e4b423a 100644 --- a/src/aws-cpp-sdk-core/source/http/windows/WinINetSyncHttpClient.cpp +++ b/src/aws-cpp-sdk-core/source/http/windows/WinINetSyncHttpClient.cpp @@ -31,6 +31,10 @@ using namespace Aws::Utils::Logging; static const DWORD HTTP_PROTOCOL_FLAG_HTTP2 = 0x2; #endif +#ifndef INTERNET_OPTION_ENABLE_HTTP_PROTOCOL +static const DWORD INTERNET_OPTION_ENABLE_HTTP_PROTOCOL = 148; +#endif + static void WinINetEnableHttp2(void* handle) { DWORD http2 = HTTP_PROTOCOL_FLAG_HTTP2;