add-version.patch 614 B

12345678910111213141516171819
  1. diff --git a/internal-complibs/snappy-1.1.1/snappy-c.h b/internal-complibs/snappy-1.1.1/snappy-c.h
  2. index c6c2a86..eabe3ae 100644
  3. --- a/internal-complibs/snappy-1.1.1/snappy-c.h
  4. +++ b/internal-complibs/snappy-1.1.1/snappy-c.h
  5. @@ -37,6 +37,14 @@
  6. extern "C" {
  7. #endif
  8. +// The next is for getting the Snappy version even if used the C API
  9. +// Please note that this is only defined in the Blosc sources of Snappy.
  10. +#define SNAPPY_MAJOR 1
  11. +#define SNAPPY_MINOR 1
  12. +#define SNAPPY_PATCHLEVEL 1
  13. +#define SNAPPY_VERSION \
  14. + ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
  15. +
  16. #include <stddef.h>
  17. /*