deprecated.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  1. --- a/src/google/protobuf/port_def.inc
  2. +++ b/src/google/protobuf/port_def.inc
  3. @@ -375,26 +375,13 @@ static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and
  4. #if defined(PROTOBUF_DEPRECATED_MSG)
  5. #error PROTOBUF_DEPRECATED_MSG was previously defined
  6. #endif
  7. -#if __has_attribute(deprecated) || defined(__GNUC__)
  8. -# define PROTOBUF_DEPRECATED __attribute__((deprecated))
  9. -# define PROTOBUF_DEPRECATED_MSG(msg) __attribute__((deprecated(msg)))
  10. -#elif defined(_MSC_VER)
  11. -# define PROTOBUF_DEPRECATED __declspec(deprecated)
  12. -# define PROTOBUF_DEPRECATED_MSG(msg) __declspec(deprecated(msg))
  13. -#else
  14. # define PROTOBUF_DEPRECATED
  15. # define PROTOBUF_DEPRECATED_MSG(msg)
  16. -#endif
  17. #if defined(PROTOBUF_DEPRECATED_ENUM)
  18. #error PROTOBUF_DEPRECATED_ENUM was previously defined
  19. #endif
  20. -#if defined(__clang__) || defined(__GNUC__)
  21. -// https://gcc.gnu.org/gcc-6/changes.html
  22. -# define PROTOBUF_DEPRECATED_ENUM __attribute__((deprecated))
  23. -#else
  24. # define PROTOBUF_DEPRECATED_ENUM
  25. -#endif
  26. #if defined(__clang__)
  27. #define PROTOBUF_IGNORE_DEPRECATION_START