The secret was to

a) replace longs with int64_t (or intptr_t if appropriate).

but also

b) Call (all) functions (found) inside assembly code with the __attribute___
((sysv_abi))___

(I practically did it by putting a CROSSCALL in front of their declarations

with CROSSCALL being,

#ifdef    WIN64
    #define CROSSCALL __attribute__ ((sysv_abi))
#elif     WIN32
    #define CROSSCALL __attribute__ ((ms_abi))
#else
    #define CROSSCALL __attribute__ ((sysv_abi))
#endif


Do you want a patch or are you OK with it?
_______________________________________________
ioquake3 mailing list
[email protected]
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to