support for 64bit native mods

This commit is contained in:
Ludwig Nussel 2005-08-30 20:30:17 +00:00
parent 334fa9c48c
commit 88171d6bb7
14 changed files with 50 additions and 51 deletions

View file

@ -305,16 +305,7 @@ SV_GameSystemCalls
The module is making a system call
====================
*/
//rcg010207 - see my comments in VM_DllSyscall(), in qcommon/vm.c ...
#if ((defined __linux__) && (defined __powerpc__))
#define VMA(x) ((void *) args[x])
#else
#define VMA(x) VM_ArgPtr(args[x])
#endif
#define VMF(x) ((float *)args)[x]
int SV_GameSystemCalls( int *args ) {
long SV_GameSystemCalls( long *args ) {
switch( args[0] ) {
case G_PRINT:
Com_Printf( "%s", VMA(1) );