Implemented the Dynamic API magic.

--HG--
extra : rebase_source : 38f639089d3d142895d5cf106919a0bfbb65c5ed
This commit is contained in:
Ryan C. Gordon 2013-12-09 16:03:18 -05:00
parent 82edee6971
commit 63256a2384
21 changed files with 1808 additions and 1 deletions

View file

@ -111,7 +111,12 @@ SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data,
/**
* Create a thread.
*/
#if defined(SDL_CreateThread) && SDL_DYNAMIC_API
#undef SDL_CreateThread
#define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
#else
#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
#endif
#else