comparison src/thread/SDL_systhread.h @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children 9fb0eee04dd9
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 /* These are functions that need to be implemented by a port of SDL */ 24 /* These are functions that need to be implemented by a port of SDL */
24 25
25 #ifndef _SDL_systhread_h 26 #ifndef _SDL_systhread_h
26 #define _SDL_systhread_h 27 #define _SDL_systhread_h
29 30
30 /* This function creates a thread, passing args to SDL_RunThread(), 31 /* This function creates a thread, passing args to SDL_RunThread(),
31 saves a system-dependent thread id in thread->id, and returns 0 32 saves a system-dependent thread id in thread->id, and returns 0
32 on success. 33 on success.
33 */ 34 */
34 #if defined(_WIN32) || defined(__OS2__) 35 #if defined(__WIN32__) || defined(__OS2__)
35 extern int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); 36 extern int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread);
36 #else 37 #else
37 extern int SDL_SYS_CreateThread(SDL_Thread *thread, void *args); 38 extern int SDL_SYS_CreateThread(SDL_Thread *thread, void *args);
38 #endif 39 #endif
39 40