Skip to content

Commit

Permalink
bug: #7076 adds ERROR to windows portability files
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin authored and acozzette committed Feb 21, 2020
1 parent b96241b commit c798ba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/port_def.inc
Expand Up @@ -382,6 +382,8 @@
// Windows declares several inconvenient macro names. We #undef them and then
// restore them in port_undef.inc.
#ifdef _MSC_VER
#pragma push_macro("ERROR")
#undef ERROR
#pragma push_macro("GetMessage")
#undef GetMessage
#pragma push_macro("IGNORE")
Expand Down
1 change: 1 addition & 0 deletions src/google/protobuf/port_undef.inc
Expand Up @@ -72,6 +72,7 @@

// Restore macro that may have been #undef'd in port_def.inc.
#ifdef _MSC_VER
#pragma pop_macro("ERROR")
#pragma pop_macro("GetMessage")
#pragma pop_macro("IGNORE")
#pragma pop_macro("IN")
Expand Down

0 comments on commit c798ba1

Please sign in to comment.