Fixed a warning.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3307 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1402935058
commit
016629a6c9
2 changed files with 14 additions and 2 deletions
|
@ -70,9 +70,9 @@ struct vm_s {
|
|||
#include <proto/dynload.h>
|
||||
#endif
|
||||
|
||||
dllhandle_t *QVM_LoadDLL(const char *name, void **vmMain, int (EXPORT_FN *syscall)(int arg, ... ))
|
||||
dllhandle_t *QVM_LoadDLL(const char *name, void **vmMain, sys_calldll_t syscall)
|
||||
{
|
||||
void (EXPORT_FN *dllEntry)(int (EXPORT_FN *syscall)(int arg, ... ));
|
||||
void (EXPORT_FN *dllEntry)(sys_calldll_t syscall);
|
||||
char dllname[MAX_OSPATH];
|
||||
dllhandle_t *hVM;
|
||||
|
||||
|
|
|
@ -16,18 +16,30 @@
|
|||
#else
|
||||
#if defined(_WIN64)
|
||||
#define qintptr_t __int64
|
||||
#define FTE_WORDSIZE 64
|
||||
#elif defined(_WIN32)
|
||||
#define qintptr_t __int32
|
||||
#define FTE_WORDSIZE 32
|
||||
#else
|
||||
#if __WORDSIZE == 64
|
||||
#define qintptr_t long long
|
||||
#define FTE_WORDSIZE 64
|
||||
#else
|
||||
#define qintptr_t long
|
||||
#define FTE_WORDSIZE 32
|
||||
#endif
|
||||
#endif
|
||||
#define quintptr_t unsigned qintptr_t
|
||||
#endif
|
||||
|
||||
#ifndef FTE_WORDSIZE
|
||||
#ifdef __WORDSIZE
|
||||
#define FTE_WORDSIZE __WORDSIZE
|
||||
#else
|
||||
#define FTE_WORDSIZE 32
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef qintptr_t (EXPORT_FN *sys_calldll_t) (qintptr_t arg, ...);
|
||||
typedef int (*sys_callqvm_t) (void *offset, quintptr_t mask, int fn, const int *arg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue