aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-02-18 19:07:23 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-02-18 19:07:23 +0000
commitc9d6b2beb19f80e43fec9aa61d80cc8a62233c33 (patch)
tree2f6ce39235e215b3905fe4c4f0f8651a6e6793df /README
parente89fbb8fbef8c74d202565c100ff57b04f1a60dc (diff)
downloadioquake3-aero-c9d6b2beb19f80e43fec9aa61d80cc8a62233c33.tar.gz
ioquake3-aero-c9d6b2beb19f80e43fec9aa61d80cc8a62233c33.zip
- 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
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 11 insertions, 3 deletions
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 <stdint.h>
+ #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.