no-deprecated.patch 392 B

1234567891011121314
  1. --- b/lz4.h
  2. +++ a/lz4.h
  3. @@ -582,6 +582,11 @@ union LZ4_streamDecode_u {
  4. * Another method is to define LZ4_DISABLE_DEPRECATE_WARNINGS
  5. * before including the header file.
  6. */
  7. +
  8. +#ifndef LZ4_DISABLE_DEPRECATE_WARNINGS
  9. +# define LZ4_DISABLE_DEPRECATE_WARNINGS
  10. +#endif
  11. +
  12. #ifdef LZ4_DISABLE_DEPRECATE_WARNINGS
  13. # define LZ4_DEPRECATED(message) /* disable deprecation warnings */
  14. #else