src/events/SDL_events.c
changeset 1402 d910939febfa
parent 1361 19418e4422cb
child 1659 14717b52abc0
     1.1 --- a/src/events/SDL_events.c	Tue Feb 21 08:34:45 2006 +0000
     1.2 +++ b/src/events/SDL_events.c	Tue Feb 21 08:46:50 2006 +0000
     1.3 @@ -19,6 +19,7 @@
     1.4      Sam Lantinga
     1.5      slouken@libsdl.org
     1.6  */
     1.7 +#include "SDL_config.h"
     1.8  
     1.9  /* General event handling code for SDL */
    1.10  
    1.11 @@ -150,7 +151,7 @@
    1.12  #if !SDL_THREADS_DISABLED
    1.13  	SDL_EventQ.lock = SDL_CreateMutex();
    1.14  	if ( SDL_EventQ.lock == NULL ) {
    1.15 -#ifdef macintosh /* MacOS classic you can't multithread, so no lock needed */
    1.16 +#ifdef __MACOS__ /* MacOS classic you can't multithread, so no lock needed */
    1.17  		;
    1.18  #else
    1.19  		return(-1);
    1.20 @@ -168,7 +169,7 @@
    1.21  
    1.22  		/* The event thread will handle timers too */
    1.23  		SDL_SetTimerThreaded(2);
    1.24 -#if (defined(_WIN32) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
    1.25 +#if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
    1.26  #undef SDL_CreateThread
    1.27  		SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL, NULL, NULL);
    1.28  #else