- 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.
This commit is contained in:
parent
e129637b5a
commit
4c242115dc
20 changed files with 71 additions and 56 deletions
|
@ -766,11 +766,11 @@ static void* try_dlopen(const char* base, const char* gamedir, const char* fname
|
|||
}
|
||||
|
||||
void *Sys_LoadDll( const char *name, char *fqpath ,
|
||||
long (**entryPoint)(long, ...),
|
||||
long (*systemcalls)(long, ...) )
|
||||
intptr_t (**entryPoint)(int, ...),
|
||||
intptr_t (*systemcalls)(intptr_t, ...) )
|
||||
{
|
||||
void *libHandle;
|
||||
void (*dllEntry)( long (*syscallptr)(long, ...) );
|
||||
void (*dllEntry)( intptr_t (*syscallptr)(intptr_t, ...) );
|
||||
char curpath[MAX_OSPATH];
|
||||
char fname[MAX_OSPATH];
|
||||
char *basepath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue