Commit Graph

213 Commits

Author SHA1 Message Date
Randy
436d915546 ossfuzz: add fuzzers 2020-07-07 13:08:22 +02:00
Martin Raiber
164c81c7d7 Merge pull request #158 from dimkr/meson
Add support for building as a Meson subproject
2020-06-20 16:39:01 +02:00
Dima Krasner
a8e9424b16 Add support for building as a Meson subproject 2020-06-19 20:58:20 +03:00
Wouter Deconinck
fa09b1f3d4 Fix unused parameter ‘pArray’ in mz_zip_array_range_check
When NDEBUG, the assert in mz_zip_array_range_check does nothing and an unused variable warning is generated at 4159f8c8c3/miniz_zip.c (L280)

This commit removes the `|| define (NDEBUG)` so when debugging is turned off, no range check is performed.
2020-04-20 11:19:09 -05:00
Martin Raiber
4159f8c8c3 Merge pull request #149 from vladtepesch/master
added uncompress2
2020-03-09 13:44:23 +01:00
vlad
ccff20b76d added uncompress2 2020-02-20 19:36:13 +01:00
Andreas Stefl
1e8c7ce810 write with dynamic size 2020-01-23 17:15:04 +01:00
Martin Raiber
e48d8bab88 Merge pull request #144 from syoyo/gcc-ansi-build-fix
ansi mode does not support double-slash comment.
2019-12-26 10:15:01 +01:00
Syoyo Fujita
a828cc329c ansi mode does not support double-slash comment. Replaced // with /* */ 2019-12-26 14:53:37 +09:00
Martin Raiber
1567c8d06c Merge pull request #143 from driazati/fixcrc
Fix missing crc guard
2019-12-14 18:26:13 +01:00
Your Name
a88d1571c1 Fix missing crc guard
This fixes a warning for an unused variable if `MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS` is on.
2019-12-13 11:22:05 -08:00
Martin Raiber
f66b3e1901 Merge pull request #142 from arabine/master
Fix warning (added cast)
2019-10-28 13:55:47 +01:00
Anthony Rabine
5108f95f58 Fix warning (added cast) 2019-10-28 13:50:42 +01:00
Martin Raiber
3a00ea8b73 Merge pull request #141 from jjlilley/jjlilley
Add #elif to enable an external mz_crc32() to be linked in.
2019-10-11 16:11:13 +02:00
jeremyl
a0dd5179db Add #elif to enable an external mz_crc32() to be linked in.
Adds '#elif defined(USE_EXTERNAL_MZCRC)' by the mz_crc32() definition
to enable the option of a user linking in an alternate crc implementation.

The main reason why this might be desired would be to use an SSE-accelerated
crc implementaiton, which would be faster, but not be reasonable to include
in this file.
2019-10-09 11:30:50 -07:00
Martin Raiber
107def8e36 Merge pull request #140 from dandrader/fixLfsCheck
Fix LFS check
2019-10-06 18:02:54 +02:00
Daniel d'Andrada
334e0d64ce Fix LFS check
Code should check for__USE_LARGEFILE64, not _LARGEFILE64_SOURCE

_LARGEFILE64_SOURCE should be used only for setting a preference
when compiling code (either explicitly or by the compiler itself).
Then, according to its value, features.h will take care define things
like __USE_LARGEFILE64 appropriately.

As a side-effect, this patch adds support for clang. When building
with clang one has to explicitly define _LARGEFILE64_SOURCE if he
want to use the *64 api.
2019-10-04 14:11:18 +02:00
Martin Raiber
0238ce2a3b Merge pull request #139 from andiwand/cmake-use-current-directories
use CMAKE_CURRENT_* directories
2019-10-01 13:38:34 +02:00
Andreas Stefl
cd99affed0 use CMAKE_CURRENT_* directories 2019-09-26 20:03:00 +02:00
Martin Raiber
bee490c712 Merge pull request #137 from dandrader/locateFileBool
mz_zip_reader_locate_file_v2 returns an mz_bool
2019-09-24 13:13:12 +02:00
Daniel d'Andrada
6ed35304fe mz_zip_reader_locate_file_v2 returns an mz_bool 2019-09-24 10:48:48 +02:00
Martin Raiber
e0c964c4a3 Merge pull request #135 from tamasmeszaros/cmake-dynlib
Add include location tolerance and stop forcing _GNU_SOURCE
2019-06-11 20:50:10 +02:00
tamasmeszaros
416f5ea723 Add include location tolerance and stop forcing _GNU_SOURCE.
_GNU_SOURCE will still be enabled if building static or shared library, but only as a PRIVATE compile definition. It will not leak into targets using miniz.
2019-06-04 09:38:33 +02:00
tamasmeszaros
e8ab1c9a6d Fix for misleading doc comment on mz_zip_reader_init_cfile function. 2019-06-03 15:48:11 +02:00
Martin Raiber
e71344bdd7 Merge pull request #134 from tamasmeszaros/cmake-dynlib
Support installation of amalgamated sources
2019-06-03 15:11:49 +02:00
tamasmeszaros
3b9a004a4f Create export script for amalgamated sources with correct version info.
Also added _GNU_SOURCE to on GNU compilers to support large files.
2019-06-03 10:44:40 +02:00
tamasmeszaros
d57872c77a Fix for older cmake versions and build of examples. 2019-06-03 10:02:13 +02:00
Martin Raiber
b713ca2b4a Merge pull request #132 from tamasmeszaros/cmake-dynlib
Use CMake export header for exporting symbols.
2019-06-02 21:30:46 +02:00
tamasmeszaros
185bc3c683 Use CMake export header for exporting symbols.
Only in shared library mode.
2019-05-28 11:57:37 +02:00
Martin Raiber
ff06fbaafc Merge pull request #131 from tamasmeszaros/cmake-dynlib
Modified cmake script to support shared library mode and find_package.
2019-05-27 18:10:45 +02:00
tamasmeszaros
1261dfa9ad Modified cmake script to support shared library mode and find_package. 2019-05-27 14:16:27 +02:00
Martin Raiber
ea41268ac9 Merge pull request #129 from rbsheth/cmake_updates
CMake updates and CMake-based amalgamation step
2019-05-23 19:55:02 +02:00
Rahul Sheth
c3e5de6699 remove bash-specific amalgamation code 2019-05-22 19:52:19 -04:00
Rahul Sheth
a3aeeb3307 fix examples with amalgamation 2019-05-22 19:25:54 -04:00
Rahul Sheth
4ec19d6731 Initial CMake update 2019-05-22 19:17:28 -04:00
Martin
a4264837ae Fix type issue 2.1.0 2019-04-11 02:35:18 +02:00
Martin
b4936524bc Update ChangeLog 2019-03-31 14:40:12 +02:00
Martin Raiber
e9020723b3 Merge pull request #124 from Cgettys/add-unaligned-defined-guard
Add !defined check on MINIZ_USE_ALIGNED_LOADS_AND_STORES
2019-03-31 14:33:13 +02:00
Charlie Gettys
5ba89c135d Add !defined check on MINIZ_USE_ALIGNED_LOADS_AND_STORES
Add !defined check so that one can override MINIZ_USE_ALIGNED_LOADS_AND_STORES in case a given compiler does not support it (this issue has been seen in the wild, #assimp/assimp#2389
2019-03-27 10:46:41 -04:00
Martin
25de35faec Remove check that path of file added to archive contains ':' or '\' 2019-03-07 14:37:56 +01:00
Martin
4d1d5b6771 Merge branch 'master' of github.com:richgel999/miniz 2019-03-07 14:08:22 +01:00
Martin Raiber
034f0228eb Merge pull request #122 from FrancescAlted/fix-msvc-warning2
More fixes for warnings MSVC
2019-03-07 14:06:42 +01:00
Martin Raiber
4b8c4f432c Merge pull request #121 from FrancescAlted/fix-msvc-warning
Fix a MSVC 2013 warning
2019-03-07 14:05:31 +01:00
Martin Raiber
9d79ea2245 Merge pull request #119 from andiwand/cmake-use-target_include_directories
use target_include_directories
2019-03-07 14:04:51 +01:00
Martin
6db3c0d290 Don't warn if _LARGEFILE64_SOURCE is not defined 2019-03-07 14:04:15 +01:00
Francesc Alted
96f0da1db9 Yet another fix 2019-03-06 14:34:39 +01:00
Francesc Alted
93c6567773 More fixes for MSVC 2019-03-06 14:07:45 +01:00
Francesc Alted
2b45f89867 Fix a MSVC 2013 warning 2019-03-06 09:51:03 +01:00
Andreas Stefl
5c62e23e04 use target_include_directories 2019-03-03 19:35:13 +01:00
Martin Raiber
f3461d636a Merge pull request #109 from mcgouganp/master
Fix large file support under Windows
2019-01-23 17:44:13 +01:00