From c9d6b2beb19f80e43fec9aa61d80cc8a62233c33 Mon Sep 17 00:00:00 2001 From: ludwig Date: Sat, 18 Feb 2006 19:07:23 +0000 Subject: - change long to intptr_t for 64bit windows compatability - change vmMain arguments back to int. 64bit types are apparently not needed there. Only the syscall function needs them. git-svn-id: svn://svn.icculus.org/quake3/trunk@550 edf5b092-35ff-0310-97b2-ce42778d08ea --- README | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'README') diff --git a/README b/README index 0285a45..4e08333 100644 --- a/README +++ b/README @@ -148,10 +148,18 @@ Using Demo Data Files If you wish to compile external mods as shared libraries on a 64bit platform, and the mod source is derived from the id Q3 SDK, you will need to modify the interface code a little. Open the files ending in _syscalls.c and change - every instance of int to long in the declaration of the syscall function + every instance of int to intptr_t in the declaration of the syscall function pointer and the dllEntry function. Also find the vmMain function for each - module (usually in cg_main.c g_main.c etc.) and similarly replace every - instance of int in the prototype with long. + module (usually in cg_main.c g_main.c etc.) and similarly replace the return + value in the prototype with intptr_t (arg0, arg1, ...stay int). + + Add the following code snippet to q_shared.h: + + #ifdef Q3_VM + typedef int intptr_t; + #else + #include + #endif Note if you simply wish to run mods on a 64bit platform you do not need to recompile anything since by default Q3 uses a virtual machine system. -- cgit v1.2.3