NO

Author Topic: miniz 3.0.2  (Read 170 times)

Offline John Z

  • Member
  • *
  • Posts: 845
miniz 3.0.2
« on: Yesterday at 12:45:57 PM »
A couple years ago (4?) I hacked miniz 1.19 to get it to run under Pelles C.  It still works under Pelles V12 even with the abundant warnings...

Now I see miniz 3.0.2 is out there.  Tried some quick changes as I made in 1.19 but getting:
fatal error: Internal error: 'Access violation' at 0x00007ff7f5333e99  when compiling with Pelles C 12

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

Would be nice if someone has already got it working :) ?? hope hope hope --

John Z

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2101
Re: miniz 3.0.2
« Reply #1 on: Yesterday at 08:33:03 PM »
Can't help   :(

internal error comes with x64

Pelles C: with C11
Code: [Select]
struct tm * localtime_s(const time_t * restrict timer, struct tm * restrict dst);
msvc:
Code: [Select]
errno_t localtime_s(struct tm* const tmDest, time_t const* const sourceTime);
so have to define _POSIX_C_SOURCE

My test defines for x86 was: _POSIX_C_SOURCE _wstat64=_wstat _stat64=_stat __stat64=_stat _chsize_s=chsize
x64 have stat64 and wstat64 in crt64

low interest to split source for testing  :(


EDIT:
test with:
Code: [Select]
//#define MINIZ_HEADER_FILE_ONLY // OK
#define MINIZ_NO_ARCHIVE_APIS
#define MINIZ_NO_ARCHIVE_WRITING_APIS
#define MINIZ_NO_STDIO
#define MINIZ_NO_TIME
#define MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
#define MINIZ_NO_INFLATE_APIS
#define MINIZ_NO_MALLOC
#define MINIZ_UNALIGNED_USE_MEMCPY
#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES
#include "miniz.h"
errors
Code: [Select]
Building test_1.obj.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(689): error #1021: Invalid operand '&&' in preprocessor expression.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(689): error #1019: Syntax error in preprocessor expression.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(2957): error #1021: Invalid operand '&&' in preprocessor expression.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(2957): error #1019: Syntax error in preprocessor expression.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(3261): error #1019: Syntax error in preprocessor expression.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(3385): error #1021: Invalid operand '&&' in preprocessor expression.
C:\code\PellesC\MiniZ\zip-v3.0.2\src\miniz.h(3385): error #1019: Syntax error in preprocessor expression.
fatal error: Internal error: 'Access violation' at 0x000000013f703e99.
*** Error code: 1 ***
Done.
« Last Edit: Today at 08:25:40 AM by TimoVJL »
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 845
Re: miniz 3.0.2
« Reply #2 on: Yesterday at 11:53:45 PM »
Thanks Timo, appreciate the look see.

Not urgent anyway so I’ll keep looking as time and interest permits.
Appreciate the defines tip.

There are certainly a lot more interesting things these days  :)

John Z