mingw.patch 832 B

1234567891011121314
  1. diff --git a/lib/zip_source_file_win32.h b/lib/zip_source_file_win32.h
  2. index d86069ec..86ef2651 100644
  3. --- a/lib/zip_source_file_win32.h
  4. +++ b/lib/zip_source_file_win32.h
  5. @@ -76,6 +76,9 @@ int _zip_win32_error_to_errno(DWORD win32err);
  6. #ifdef __clang__
  7. #define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wincompatible-function-pointer-types\"")
  8. #define DONT_WARN_INCOMPATIBLE_FN_PTR_END _Pragma("GCC diagnostic pop")
  9. +#elif defined(__GNUC__) && __GNUC__ > 13
  10. +#define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wincompatible-pointer-types\"")
  11. +#define DONT_WARN_INCOMPATIBLE_FN_PTR_END _Pragma("GCC diagnostic pop")
  12. #else
  13. #define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN
  14. #define DONT_WARN_INCOMPATIBLE_FN_PTR_END