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

@ -1036,7 +1036,11 @@ open_audio_device(const char *devname, int iscapture,
/* !!! FIXME: this is nasty. */
#if defined(__WIN32__) && !defined(HAVE_LIBC)
#undef SDL_CreateThread
#if SDL_DYNAMIC_API
device->thread = SDL_CreateThread_REAL(SDL_RunAudio, name, device, NULL, NULL);
#else
device->thread = SDL_CreateThread(SDL_RunAudio, name, device, NULL, NULL);
#endif
#else
device->thread = SDL_CreateThread(SDL_RunAudio, name, device);
#endif