include/SDL_thread.h
changeset 8094 9efaae827924
parent 7981 6d538bc1b395
child 8149 681eb46b8ac4
equal deleted inserted replaced
8093:b43765095a6f 8094:9efaae827924
   109                  pfnSDL_CurrentEndThread pfnEndThread);
   109                  pfnSDL_CurrentEndThread pfnEndThread);
   110 
   110 
   111 /**
   111 /**
   112  *  Create a thread.
   112  *  Create a thread.
   113  */
   113  */
       
   114 #if defined(SDL_CreateThread) && SDL_DYNAMIC_API
       
   115 #undef SDL_CreateThread
       
   116 #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
       
   117 #else
   114 #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
   118 #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
       
   119 #endif
   115 
   120 
   116 #else
   121 #else
   117 
   122 
   118 /**
   123 /**
   119  *  Create a thread.
   124  *  Create a thread.