From e8273b31103d0757a280b6b84b35e51cda0b5038 Mon Sep 17 00:00:00 2001 From: Joseph Klix Date: Wed, 25 Sep 2024 12:20:07 -0700 Subject: [PATCH] undef HTTP_VERSION if on windows --- src/aws-cpp-sdk-core/include/aws/core/http/Version.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/aws-cpp-sdk-core/include/aws/core/http/Version.h b/src/aws-cpp-sdk-core/include/aws/core/http/Version.h index 921e0676008..538334897a7 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/http/Version.h +++ b/src/aws-cpp-sdk-core/include/aws/core/http/Version.h @@ -10,6 +10,15 @@ namespace Aws { /** * Enum to represent version of the http protocol to use */ + +#ifdef _WIN32 + #pragma push_macro("HTTP_VERSION") +#undef HTTP_VERSION_1_0 +#undef HTTP_VERSION_1_1 +#undef HTTP_VERSION_2_0 + +#pragma pop_macro("HTTP_VERSION") +#endif //#ifdef _WIN32 enum class Version { HTTP_VERSION_NONE, HTTP_VERSION_1_0,