Skip to content

Commit

Permalink
Fix USE_WISP thread return type
Browse files Browse the repository at this point in the history
  • Loading branch information
fungos committed Apr 29, 2018
1 parent b5bb9aa commit 627a5e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OrionUO/Wisp/WispThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@

#if USE_WISP
#define THREADCALL __stdcall
typedef unsigned thread_int;
#else
#define THREADCALL SDLCALL
typedef int thread_int;
#endif

namespace WISP_THREAD
{
//----------------------------------------------------------------------------------
int THREADCALL CThreadLoop(void *arg)
thread_int THREADCALL CThreadLoop(void *arg)
{
WISPFUN_DEBUG("c_trdlp");
CThread *parent = (CThread*)arg;
Expand Down Expand Up @@ -54,7 +56,7 @@ int THREADCALL CThreadLoop(void *arg)
return 0;
};
//----------------------------------------------------------------------------------
int THREADCALL CThreadLoopSynchronizedDelay(void *arg)
thread_int THREADCALL CThreadLoopSynchronizedDelay(void *arg)
{
WISPFUN_DEBUG("c_trdlpsd");
CThread *parent = (CThread*)arg;
Expand Down

0 comments on commit 627a5e6

Please sign in to comment.