From 8153444877c9b4c58a04f5db5400fad1b4fc70ea Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Sat, 9 Apr 2011 21:13:54 +0000 Subject: [PATCH] Fixing UI .so/dll loading --- reaction/code/ui/ui_main.c | 2 +- reaction/code/ui/ui_syscalls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reaction/code/ui/ui_main.c b/reaction/code/ui/ui_main.c index e3ece64e..48547096 100644 --- a/reaction/code/ui/ui_main.c +++ b/reaction/code/ui/ui_main.c @@ -491,7 +491,7 @@ void _UI_KeyEvent(int key, qboolean down); void _UI_MouseEvent(int dx, int dy); void _UI_Refresh(int realtime); qboolean _UI_IsFullscreen(void); -int vmMain(int command, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, +Q_EXPORT intptr_t vmMain(int command, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11) { switch (command) { diff --git a/reaction/code/ui/ui_syscalls.c b/reaction/code/ui/ui_syscalls.c index 4fc8cfb1..dbae9063 100644 --- a/reaction/code/ui/ui_syscalls.c +++ b/reaction/code/ui/ui_syscalls.c @@ -31,7 +31,7 @@ static int (QDECL * syscall) (int arg, ...) = (int (QDECL *) (int, ...)) -1; -void dllEntry(int (QDECL * syscallptr) (int arg, ...)) +Q_EXPORT void dllEntry(int (QDECL * syscallptr) (int arg, ...)) { syscall = syscallptr; }