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

Revision 8ebc79b, 935 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-stubs-public.h b/internal-complibs/snappy-1.1.1/snappy-stubs-public.h
2index ecda439..4cc8965 100644
3--- a/internal-complibs/snappy-1.1.1/snappy-stubs-public.h
4+++ b/internal-complibs/snappy-1.1.1/snappy-stubs-public.h
5@@ -36,8 +36,21 @@
6 #ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
7 #define UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
8 
9-#if 1
10+// MSVC 2008 does not include stdint.h.  This is a workaround by Mark W.
11+// Please note that this is only defined in the Blosc sources of Snappy.
12+#if !defined(_MSC_VER) || _MSC_VER >= 1600
13 #include <stdint.h>
14+#else
15+typedef signed char int8_t;
16+typedef short int16_t;
17+typedef int int32_t;
18+typedef __int64 int64_t;
19+typedef ptrdiff_t intptr_t;
20+typedef unsigned char uint8_t;
21+typedef unsigned short uint16_t;
22+typedef unsigned int uint32_t;
23+typedef unsigned __int64 uint64_t;
24+typedef size_t uintptr_t;
25 #endif
26 
27 #if 1
Note: See TracBrowser for help on using the repository browser.