/Wp64 and __w64 are deprecated beginning with Visual C++ 2008.

Remove the /Wp64 switch from the cabman project file (no idea why it was enabled anyway ;-) and the _W64 macros from the code.

svn path=/trunk/; revision=32395
This commit is contained in:
Colin Finck 2008-02-16 22:21:59 +00:00
parent c87abac6d8
commit 9f5d2684e0
4 changed files with 5 additions and 9 deletions

View file

@ -1210,8 +1210,8 @@ ULONG CCabinet::ExtractFile(char* FileName)
BytesToRead = CFData.CompSize;
DPRINT(MAX_TRACE, ("Read: (0x%lX,0x%lX).\n",
(_W64 unsigned long)CurrentBuffer, (_W64 unsigned long)Buffer));
DPRINT(MAX_TRACE, ("Read: (0x%X,0x%X).\n",
(UINT)CurrentBuffer, (UINT)Buffer));
if (((Status = ReadBlock(CurrentBuffer, BytesToRead, &BytesRead)) !=
CAB_STATUS_SUCCESS) || (BytesToRead != BytesRead))

View file

@ -21,10 +21,6 @@
#endif
#endif
#ifndef _W64
#define _W64
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -48,7 +48,7 @@
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
/>
<Tool

View file

@ -74,7 +74,7 @@ ULONG CMSZipCodec::Compress(void* OutputBuffer,
ZStream.next_in = (unsigned char*)InputBuffer;
ZStream.avail_in = InputLength;
ZStream.next_out = (unsigned char*)((_W64 unsigned long)OutputBuffer + 2);
ZStream.next_out = (unsigned char*)((unsigned long)OutputBuffer + 2);
ZStream.avail_out = CAB_BLOCKSIZE + 12;
/* WindowBits is passed < 0 to tell that there is no zlib header */
@ -137,7 +137,7 @@ ULONG CMSZipCodec::Uncompress(void* OutputBuffer,
return CS_BADSTREAM;
}
ZStream.next_in = (unsigned char*)((_W64 unsigned long)InputBuffer + 2);
ZStream.next_in = (unsigned char*)((unsigned long)InputBuffer + 2);
ZStream.avail_in = InputLength - 2;
ZStream.next_out = (unsigned char*)OutputBuffer;
ZStream.avail_out = CAB_BLOCKSIZE + 12;