Skip to content

Commit

Permalink
Merge pull request #6 from protocolbuffers/master
Browse files Browse the repository at this point in the history
bug: protocolbuffers#7076 adds ERROR to windows portability files
  • Loading branch information
sthagen committed Feb 23, 2020
2 parents 88fe5f3 + c798ba1 commit 87fa3d5
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 87fa3d5

Please sign in to comment.