Mercurial > sdl-ios-xcode
diff src/thread/SDL_thread.c @ 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 | c71e05b4dc2e |
children | 9fb0eee04dd9 |
line wrap: on
line diff
--- a/src/thread/SDL_thread.c Tue Feb 21 08:34:45 2006 +0000 +++ b/src/thread/SDL_thread.c Tue Feb 21 08:46:50 2006 +0000 @@ -19,6 +19,7 @@ Sam Lantinga slouken@libsdl.org */ +#include "SDL_config.h" /* System independent thread management routines for SDL */ @@ -208,7 +209,7 @@ *statusloc = userfunc(userdata); } -#if defined(_WIN32) || defined(__OS2__) +#if defined(__WIN32__) || defined(__OS2__) #undef SDL_CreateThread DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread) #else @@ -249,7 +250,7 @@ SDL_AddThread(thread); /* Create the thread and go! */ -#if defined(_WIN32) || defined(__OS2__) +#if defined(__WIN32__) || defined(__OS2__) ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread); #else ret = SDL_SYS_CreateThread(thread, args);