News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Github-kuba miniz for Pelles C

Started by John Z, November 25, 2025, 12:01:37 PM

Previous topic - Next topic

John Z

11/25/2025

This is GitHub-kuba miniz 3.0.2 with minor modifications for Pelles C

Minor changes to compile in Pelles C Version 13 (and probably earlier versions)
All changes annotated with //ZZ

Build Notes:
If file time&date/functions are NOT needed define MINIZ_NO_TIME
If time&date is wanted then the /Go (Define compatibility names) option in Pelles
must be used.

Many build warnings - no errors of course.  Tested zip a file, unzip a file, also
a miniz zipped file was able to be unzipped with Windows itself as well as 7z.
Tested unzip to memory as well.

Did not try using any Pelles C optimizations.  Suggest using
#pragma optimize( none ) in the three source files if using optimizations elsewhere


Also example usages are included from kuba.

John Z

John Z

Has anyone gotten the newest release version 3.1.1 of Github-kuba miniz to build in Pelles C?

https://github.com/kuba--/zip

Has new features as well as 64bit capability.

John Z

TimoVJL

#2
You have to modify sources a bit ?
miniz.h line 5451
from
#ifdef _MSC_VER#if defined(_MSC_VER) && !defined(__POCC__)

zip.c line 42
#if defined(_MSC_VER) && !defined(__POCC__)
May the source be with you

Vortex

Hi Timo,

It look like that compiling new version is not so easy. A lot of warnings and error messages.
Code it... That's all...

Vortex

Hi Timo,

Great work, many thanks.
Code it... That's all...

John Z

Thanks Timo,Vortex,

Yes I had that one and several other changes similar to what I did for 3.0.2
It is creating a zip file that can be opened with both Windows Explorer and 7z.

However there is something amiss.  Both LibreOffice Calc and Excel complain of a corrupted zip, but both will 'repair' it and open with all the data intact.

So it seems like something not quite right in the header, or other housekeeping part.  Checking the actual zipped files from an 'old' version and in the new 3.1.1 version shows the files themselves are identical.

Maybe I'll just start over - But I'll try your work first  :)

Thanks,
John Z