SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining.
authorOzkan Sezer <sezeroz@gmail.com>
Fri, 12 Oct 2018 01:03:40 +0300
changeset 1231869ebb2ebced0
parent 12317 d147224c0f28
child 12319 06e89f1159f9
SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining.
include/SDL_thread.h
     1.1 --- a/include/SDL_thread.h	Thu Oct 11 16:40:01 2018 -0400
     1.2 +++ b/include/SDL_thread.h	Fri Oct 12 01:03:40 2018 +0300
     1.3 @@ -119,6 +119,7 @@
     1.4  #if defined(SDL_CreateThread) && SDL_DYNAMIC_API
     1.5  #undef SDL_CreateThread
     1.6  #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
     1.7 +#undef SDL_CreateThreadWithStackSize
     1.8  #define SDL_CreateThreadWithStackSize(fn, name, stacksize, data) SDL_CreateThreadWithStackSize_REAL(fn, name, stacksize, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
     1.9  #else
    1.10  #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
    1.11 @@ -149,6 +150,7 @@
    1.12  #if defined(SDL_CreateThread) && SDL_DYNAMIC_API
    1.13  #undef SDL_CreateThread
    1.14  #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
    1.15 +#undef SDL_CreateThreadWithStackSize
    1.16  #define SDL_CreateThreadWithStackSize(fn, name, stacksize, data) SDL_CreateThreadWithStackSize_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
    1.17  #else
    1.18  #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)