diff --git a/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-internal.h b/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-internal.h
index 526c38b..a92ef60 100644
--- a/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-internal.h
+++ b/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-internal.h
@@ -37,7 +37,14 @@
 
 #include <stdint.h>
 
-#include <cassert>
+#if !defined(USING_R)
+#  include <cassert>
+#else
+#  ifndef assert
+#    define assert(condition) ((void)0)
+#  endif
+#endif
+
 #include <cstdlib>
 #include <cstring>
 #include <limits>
diff --git a/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-public.h.in b/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-public.h
similarity index 91%
rename from src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-public.h.in
rename to src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-public.h
index 02947fa..9324ad2 100644
--- a/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-public.h.in
+++ b/src/compression_tools/blosc/lib/snappy-1.2.2/snappy-stubs-public.h
@@ -37,19 +37,19 @@
 
 #include <cstddef>
 
-#if ${HAVE_SYS_UIO_H_01}  // HAVE_SYS_UIO_H
+#if 0  // HAVE_SYS_UIO_H
 #include <sys/uio.h>
 #endif  // HAVE_SYS_UIO_H
 
-#define SNAPPY_MAJOR ${PROJECT_VERSION_MAJOR}
-#define SNAPPY_MINOR ${PROJECT_VERSION_MINOR}
-#define SNAPPY_PATCHLEVEL ${PROJECT_VERSION_PATCH}
+#define SNAPPY_MAJOR 1
+#define SNAPPY_MINOR 2
+#define SNAPPY_PATCHLEVEL 2
 #define SNAPPY_VERSION \
     ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
 
 namespace snappy {
 
-#if !${HAVE_SYS_UIO_H_01}  // !HAVE_SYS_UIO_H
+#if 1  // !HAVE_SYS_UIO_H
 // Windows does not have an iovec type, yet the concept is universally useful.
 // It is simple to define it ourselves, so we put it inside our own namespace.
 struct iovec {
