--- truecrypt/boot/windows/platform.h 2018/04/24 16:55:29 1.1.1.4 +++ truecrypt/boot/windows/platform.h 2018/04/24 17:07:44 1.1.1.8 @@ -1,24 +1,25 @@ /* - Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. + Copyright (c) 2008-2009 TrueCrypt Developers Association. All rights reserved. - Governed by the TrueCrypt License 2.5 the full text of which is contained - in the file License.txt included in TrueCrypt binary and source code - distribution packages. + Governed by the TrueCrypt License 2.8 the full text of which is contained in + the file License.txt included in TrueCrypt binary and source code distribution + packages. */ #ifndef TC_HEADER_Boot_Platform #define TC_HEADER_Boot_Platform -#pragma warning ( disable : 4769 ) +#pragma warning (disable: 4018 4102 4704 4769) #include "TCdefs.h" #include -typedef int bool; +typedef char bool; #define false 0 #define true 1 #define nullptr 0 +#define NULL 0 typedef UINT64_STRUCT uint64; @@ -100,8 +101,8 @@ bool operator< (const uint64 &a, const u bool operator>= (const uint64 &a, const uint64 &b); bool operator<= (const uint64 &a, const uint64 &b); -void CopyMemory (byte *source, uint16 destSegment, uint16 destOffset, uint16 blockSize); -void CopyMemory (uint16 sourceSegment, uint16 sourceOffset, byte *destination, uint16 blockSize); +void CopyMemory (void *source, uint16 destSegment, uint16 destOffset, uint16 blockSize); +void CopyMemory (uint16 sourceSegment, uint16 sourceOffset, void *destination, uint16 blockSize); extern "C" void EraseMemory (void *memory, int size); uint32 GetLinearAddress (uint16 segment, uint16 offset); bool RegionsIntersect (const uint64 &start1, uint32 length1, const uint64 &start2, const uint64 &end2);