Changeset 196


Ignore:
Timestamp:
Aug 20, 2014, 5:09:47 PM (10 years ago)
Author:
demin
Message:

fix pointer arithmetics in zvfs.c and add STDC_HEADERS=1 for zvfs.c compilation in makefile.include

Location:
trunk/kitgen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kitgen/makefile.include

    r195 r196  
    159159
    160160$(OUTDIR)/zvfs$O: ../../zvfs.c
    161         $(CC) -o $@ $(CFLAGS) -DHAVE_UNISTD_H=1 -DSTATIC_BUILD -Ibuild/include -c $<
     161        $(CC) -o $@ $(CFLAGS) -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DSTATIC_BUILD -Ibuild/include -c $<
    162162
    163163$(OUTDIR)/zlib$O: ../../zlib.c
  • trunk/kitgen/zvfs.c

    r175 r196  
    15511551    Tcl_Seek( chan, INT16(zBuf,26) + INT16(zBuf,28), SEEK_CUR );
    15521552    pInfo->startOfData = Tcl_Tell(chan);
    1553     sprintf( zName, "zvfs%x%x", ((int)pFile)>>12, count++ );
     1553    sprintf( zName, "zvfs%x%x", ((uintptr_t)pFile)>>12, count++ );
    15541554
    15551555    return Tcl_CreateChannel( &vfsChannelType, zName,
Note: See TracChangeset for help on using the changeset viewer.