From 71acdf2e69e3cf1cbc073dbbb423d59c6c4a83c7 Mon Sep 17 00:00:00 2001 From: tobigun Date: Thu, 3 Jul 2008 20:44:43 +0000 Subject: 64bit compatibility fix git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1162 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/lib/zlib/zlib.pas | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Game/Code/lib/zlib') diff --git a/Game/Code/lib/zlib/zlib.pas b/Game/Code/lib/zlib/zlib.pas index f613e20c..31d6a68b 100644 --- a/Game/Code/lib/zlib/zlib.pas +++ b/Game/Code/lib/zlib/zlib.pas @@ -18,6 +18,9 @@ interface {$PACKRECORDS C} {$endif} +uses + ctypes; + const ZLIB_VERSION = '1.2.3'; @@ -32,13 +35,14 @@ const type { Compatible with paszlib } - Uint = Cardinal; - Ulong = Longword; - Ulongf = Longword; - Pulongf = ^Ulongf; - z_off_t = longint; + uInt = cuint; + uLong = culong; + uLongf = uLong; {FAR} + PuLongf = ^uLongf; + z_off_t = clong; pbyte = ^byte; - pbytef = ^byte; + bytef = byte; {FAR} + pbytef = ^byte; voidpf = pointer; TAllocfunc = function (opaque: voidpf; items: uInt; size: uInt): voidpf; cdecl; @@ -60,7 +64,7 @@ type zalloc: TAllocFunc; zfree: TFreeFunc; opaque: voidpf; - data_type: integer; + data_type: cint; adler: uLong; reserved: uLong; end; -- cgit v1.2.3