Skip to content

Commit

Permalink
undef HTTP_VERSION if on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jmklix committed Sep 25, 2024
1 parent a35dba1 commit e8273b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/aws-cpp-sdk-core/include/aws/core/http/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e8273b3

Please sign in to comment.