From ec1beaa2ee07368368e9bd45fe400eedc57419eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Aug 2013 14:37:03 +0300 Subject: first part of fixes for compilation with SDL2 --- src/gui/whoisonline.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/whoisonline.cpp') diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 741e1e771..7036ac7d0 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -581,7 +581,12 @@ void WhoIsOnline::download() SDL_WaitThread(mThread, nullptr); mDownloadComplete = false; +#ifdef USE_SDL2 + mThread = SDL_CreateThread(WhoIsOnline::downloadThread, + "whoisonline", this); +#else mThread = SDL_CreateThread(WhoIsOnline::downloadThread, this); +#endif if (mThread == nullptr) mDownloadStatus = UPDATE_ERROR; -- cgit v1.2.3-70-g09d2