hiredis-windows-msvc.patch 507 B

1234567891011121314151617181920212223
  1. diff --git sds.h sds.h
  2. --- sds.h
  3. +++ sds.h
  4. @@ -43,1 +43,6 @@
  5. +#if defined(_MSC_VER) && !defined(__clang__)
  6. +#pragma pack(push, 1)
  7. +#pragma push_macro("__attribute__")
  8. +#define __attribute__(A)
  9. +#endif
  10. @@ -74,1 +78,5 @@
  11. +#if defined(_MSC_VER) && !defined(__clang__)
  12. +#pragma pop_macro("__attribute__")
  13. +#pragma pack(pop)
  14. +#endif
  15. diff --git fmacros.h fmacros.h
  16. --- fmacros.h
  17. +++ fmacros.h
  18. @@ -12,0 +12,3 @@
  19. +#if defined(_MSC_VER) && !defined(__clang__) && !defined(strdup)
  20. +#define strdup _strdup
  21. +#endif