Fix API version in header https://github.com/google/snappy/pull/61 https://github.com/google/snappy/commit/26102a0c66175bc39edbf484c994a21902e986dc.patch --- snappy-stubs-public.h.in.orig +++ snappy-stubs-public.h.in @@ -48,9 +48,9 @@ #include #endif // HAVE_SYS_UIO_H -#define SNAPPY_MAJOR ${SNAPPY_MAJOR} -#define SNAPPY_MINOR ${SNAPPY_MINOR} -#define SNAPPY_PATCHLEVEL ${SNAPPY_PATCHLEVEL} +#define SNAPPY_MAJOR ${PROJECT_VERSION_MAJOR} +#define SNAPPY_MINOR ${PROJECT_VERSION_MINOR} +#define SNAPPY_PATCHLEVEL ${PROJECT_VERSION_PATCH} #define SNAPPY_VERSION \ ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)