msvc2.patch 935 B

123456789101112131415161718192021222324252627
  1. diff --git a/internal-complibs/snappy-1.1.1/snappy-stubs-public.h b/internal-complibs/snappy-1.1.1/snappy-stubs-public.h
  2. index 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. -#if 1
  9. +// MSVC 2008 does not include stdint.h. This is a workaround by Mark W.
  10. +// Please note that this is only defined in the Blosc sources of Snappy.
  11. +#if !defined(_MSC_VER) || _MSC_VER >= 1600
  12. #include <stdint.h>
  13. +#else
  14. +typedef signed char int8_t;
  15. +typedef short int16_t;
  16. +typedef int int32_t;
  17. +typedef __int64 int64_t;
  18. +typedef ptrdiff_t intptr_t;
  19. +typedef unsigned char uint8_t;
  20. +typedef unsigned short uint16_t;
  21. +typedef unsigned int uint32_t;
  22. +typedef unsigned __int64 uint64_t;
  23. +typedef size_t uintptr_t;
  24. #endif
  25. #if 1