aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/zlib/zlib.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-07-03 20:44:43 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-07-03 20:44:43 +0000
commit71acdf2e69e3cf1cbc073dbbb423d59c6c4a83c7 (patch)
tree07b288e8c1496fa3f44bbfdf665242d2a0e96235 /Game/Code/lib/zlib/zlib.pas
parent2aa9fda75f215ed02f674a90b4229b511e68a354 (diff)
downloadusdx-71acdf2e69e3cf1cbc073dbbb423d59c6c4a83c7.tar.gz
usdx-71acdf2e69e3cf1cbc073dbbb423d59c6c4a83c7.tar.xz
usdx-71acdf2e69e3cf1cbc073dbbb423d59c6c4a83c7.zip
64bit compatibility fix
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1162 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib/zlib/zlib.pas')
-rw-r--r--Game/Code/lib/zlib/zlib.pas18
1 files changed, 11 insertions, 7 deletions
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;