source: thirdparty/blosc/internal-complibs/snappy-1.1.1/add-version.patch @ 8ebc79b

Revision 8ebc79b, 614 bytes checked in by Hal Finkel <hfinkel@…>, 8 years ago (diff)

Add the other internal compression libraries from blocs

  • Property mode set to 100644
RevLine 
[8ebc79b]1diff --git a/internal-complibs/snappy-1.1.1/snappy-c.h b/internal-complibs/snappy-1.1.1/snappy-c.h
2index 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 
9+// The next is for getting the Snappy version even if used the C API
10+// Please note that this is only defined in the Blosc sources of Snappy.
11+#define SNAPPY_MAJOR 1
12+#define SNAPPY_MINOR 1
13+#define SNAPPY_PATCHLEVEL 1
14+#define SNAPPY_VERSION \
15+    ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
16+
17 #include <stddef.h>
18 
19 /*
Note: See TracBrowser for help on using the repository browser.