Update of /cvsroot/opengtoolkit/lvzip/c_source
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7170
Modified Files:
lvutil.c
Log Message:
Fixed a MacOS compilation bug in the source
Index: lvutil.c
===================================================================
RCS file: /cvsroot/opengtoolkit/lvzip/c_source/lvutil.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** lvutil.c 27 Feb 2008 20:48:21 -0000 1.7
--- lvutil.c 28 Feb 2008 07:47:54 -0000 1.8
***************
*** 20,27 ****
#define MacIsInvisible(cpb) ((cpb).hFileInfo.ioFlFndrInfo.fdFlags & kIsInvisible)
#define MacIsInvFolder(cpb) ((cpb).dirInfo.ioDrUsrWds.frFlags & kIsInvisible)
! #define MacIsDir(cpb) ((cpb).dirInfo.ioFlAttrib & ioDirMask)
#define MacIsStationery(cpb) ((cpb).hFileInfo.ioFlFndrInfo.fdFlags & kIsStationery)
#define MacIsAlias(cpb) ((cpb).hFileInfo.ioFlFndrInfo.fdFlags & kIsAlias)
! #define kFileChanged (1L<<7)
static MgErr MakeMacSpec(Path path, FSSpec *fss);
--- 20,27 ----
#define MacIsInvisible(cpb) ((cpb).hFileInfo.ioFlFndrInfo.fdFlags & kIsInvisible)
[...2220 lines suppressed...]
#if MacOSX
! if (!err)
! err = ConvertToPosixPath(lstr->str, NULL, &pathLen);
#endif
! if (!err)
! {
! if (str && (*len > pathLen))
! {
#if MacOSX
! err = ConvertToPosixPath(lstr->str, str, len);
#else
! StrNCpy(str, lstr->str, *len);
#endif
! }
! }
! DSDisposePtr((UPtr)lstr);
! *len = pathLen + 1;
! }
! return err;
}
|