-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable libzip for mingw * fix mingw
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/lib/zip_source_file_win32.h b/lib/zip_source_file_win32.h | ||
index d86069ec..86ef2651 100644 | ||
--- a/lib/zip_source_file_win32.h | ||
+++ b/lib/zip_source_file_win32.h | ||
@@ -76,6 +76,9 @@ int _zip_win32_error_to_errno(DWORD win32err); | ||
#ifdef __clang__ | ||
#define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wincompatible-function-pointer-types\"") | ||
#define DONT_WARN_INCOMPATIBLE_FN_PTR_END _Pragma("GCC diagnostic pop") | ||
+#elif defined(__GNUC__) && __GNUC__ > 13 | ||
+#define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wincompatible-pointer-types\"") | ||
+#define DONT_WARN_INCOMPATIBLE_FN_PTR_END _Pragma("GCC diagnostic pop") | ||
#else | ||
#define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN | ||
#define DONT_WARN_INCOMPATIBLE_FN_PTR_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters