diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc index bab41b3b69..4c29134e3c 100644 --- a/src/google/protobuf/port_def.inc +++ b/src/google/protobuf/port_def.inc @@ -436,6 +436,8 @@ #ifdef _MSC_VER #pragma push_macro("CREATE_NEW") #undef CREATE_NEW +#pragma push_macro("DELETE") +#undef DELETE #pragma push_macro("DOUBLE_CLICK") #undef DOUBLE_CLICK #pragma push_macro("ERROR") @@ -479,7 +481,7 @@ #endif // _MSC_VER #if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER) -// Don't let Objective-C Macros interfere with proto identifiers with the same +// Don't let Objective-C Macros interfere with proto identifiers with the same // name. #pragma push_macro("DEBUG") #undef DEBUG diff --git a/src/google/protobuf/port_undef.inc b/src/google/protobuf/port_undef.inc index 85917621d4..80bfd30e04 100644 --- a/src/google/protobuf/port_undef.inc +++ b/src/google/protobuf/port_undef.inc @@ -86,6 +86,7 @@ // Restore macro that may have been #undef'd in port_def.inc. #ifdef _MSC_VER #pragma pop_macro("CREATE_NEW") +#pragma pop_macro("DELETE") #pragma pop_macro("DOUBLE_CLICK") #pragma pop_macro("ERROR") #pragma pop_macro("ERROR_BUSY")