]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/morefile/FileCopy.cpp
added generic color dialog to setup
[wxWidgets.git] / src / mac / morefile / FileCopy.cpp
index 8843c9b9883a79f312fafc99fa61ada9a328b75f..acb9c92d11d4ba155e247ddfb0f3e78bbea0a65a 100644 (file)
 #include <Errors.h>
 #include <Memory.h>
 #include <Files.h>
+#include <Math64.h>
 
 #define        __COMPILINGMOREFILES
 
-#include "MoreFile.h"
-#include "MoreExtr.h"
-#include "MoreDesk.h"
-#include "FileCopy.h"
+#include "morefile.h"
+#include "moreextr.h"
+#include "moredesk.h"
+#include "filecopy.h"
 
 /*****************************************************************************/
 
@@ -160,6 +161,8 @@ static      OSErr   CheckForForks(short vRefNum,
 
 /*****************************************************************************/
 
+#if !TARGET_CARBON
+
 static OSErr   PreflightFileCopySpace(short srcVRefNum,
                                                                           long srcDirID,
                                                                           ConstStr255Param srcName,
@@ -182,7 +185,8 @@ static      OSErr   PreflightFileCopySpace(short srcVRefNum,
                dstBlksPerAllocBlk = ((unsigned long)pb.xPB.ioVAlBlkSiz >> 9);
                
                /* Convert freeBytes to free disk blocks (512-byte blocks) */
-               dstFreeBlocks = (pb.xPB.ioVFreeBytes.hi << 23) + (pb.xPB.ioVFreeBytes.lo >> 9);
+               // dstFreeBlocks = (pb.xPB.ioVFreeBytes.hi << 23) + (pb.xPB.ioVFreeBytes.lo >> 9);
+               dstFreeBlocks = pb.xPB.ioVFreeBytes >> 9 ;
                
                /* Now, get the size of the file's data resource forks */
                pb.hPB.fileParam.ioNamePtr = (StringPtr)srcName;
@@ -243,7 +247,7 @@ static      OSErr   PreflightFileCopySpace(short srcVRefNum,
        
        return ( error );
 }
-
+#endif
 /*****************************************************************************/
 
 pascal OSErr   FileCopy(short srcVRefNum,