SDL_rwops_zzip on Windows?

Just curious if anyone is using the SDL_rwops_zzip extension on Windows to allow them to access zzip files using normal SDL file open/read/close calls. I’ve used this successfully on the Mac, but on the Windows side am getting bizarre errors. I can post more details, but for now am just curious if anyone else is using SDL_rwops_zzip on Windows.

Just curious if anyone is using the SDL_rwops_zzip extension on Windows
to allow them to access zzip files using normal SDL file open/read/close
calls. I’ve used this successfully on the Mac, but on the Windows side
am getting bizarre errors. I can post more details, but for now am just
curious if anyone else is using SDL_rwops_zzip on Windows.

I had to disable mmap to get it to work with mingw-cross-env.

GregoryOn Thu, 8 Dec 2011, VernJensen wrote:

The errors I get are in SDL_rwops_zzip.c itself:

warning C4028: formal parameter 1 different from declaration
warning C4028: formal parameter 3 different from declaration
warning C4029: declared formal parameter list different from definition
error C2491: ‘_read’ : definition of dllimport function not allowed

I really have no idea what that final error message means.

Line 30 of the file is this:

static int _zzip_read(SDL_RWops *context, void ptr, int size, int maxnum)
{
return zzip_read(SDL_RWOPS_ZZIP_FILE(context), ptr, size
maxnum) / size;
}

It continues to have similar errors for all functions in the file (_zzip_write, _zzip_close, etc.)

Gregory Smith wrote:> On Thu, 8 Dec 2011, VernJensen wrote:

I had to disable mmap to get it to work with mingw-cross-env.

Gregory

I have no idea what mmap is or how to disable it.

Why dont you use physfs to load files from ziped archives?On Thu, Dec 8, 2011 at 10:36 PM, VernJensen wrote:

**

Gregory Smith wrote:

On Thu, 8 Dec 2011, VernJensen wrote:
I had to disable mmap to get it to work with mingw-cross-env.

Gregory

I have no idea what mmap is or how to disable it.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org