From faeb2359bdab1bfa37904d58cec35a8c1be1b983 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 26 Jan 2019 21:13:44 +0000 Subject: psxglue.h: struct __psx_context: re-define .usrmain as a function pointer. --- arch/nt32/psxglue.h | 2 +- arch/nt64/psxglue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'arch') diff --git a/arch/nt32/psxglue.h b/arch/nt32/psxglue.h index 30fb884..8e32aae 100644 --- a/arch/nt32/psxglue.h +++ b/arch/nt32/psxglue.h @@ -37,7 +37,6 @@ struct __tlca_abi { struct __psx_context { int size; int options; - void * usrmain; void * ldsoaddr; const unsigned short * ctty; void ** sys_vtbl; @@ -47,6 +46,7 @@ struct __psx_context { unsigned int teb_libc_idx; void * pthread_surrogate_fn; void * pthread_create_fn; + int (*usrmain)(); }; typedef int __psx_init_routine( diff --git a/arch/nt64/psxglue.h b/arch/nt64/psxglue.h index 30fb884..8e32aae 100644 --- a/arch/nt64/psxglue.h +++ b/arch/nt64/psxglue.h @@ -37,7 +37,6 @@ struct __tlca_abi { struct __psx_context { int size; int options; - void * usrmain; void * ldsoaddr; const unsigned short * ctty; void ** sys_vtbl; @@ -47,6 +46,7 @@ struct __psx_context { unsigned int teb_libc_idx; void * pthread_surrogate_fn; void * pthread_create_fn; + int (*usrmain)(); }; typedef int __psx_init_routine( -- cgit v1.2.3