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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401406
This commit is contained in:
Sam Lantinga 2006-02-21 08:46:50 +00:00
parent 14ec0fcc7b
commit c36118165e
502 changed files with 974 additions and 219 deletions

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* Application focus/iconification handling code for SDL */

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* General event handling code for SDL */
@ -150,7 +151,7 @@ static int SDL_StartEventThread(Uint32 flags)
#if !SDL_THREADS_DISABLED
SDL_EventQ.lock = SDL_CreateMutex();
if ( SDL_EventQ.lock == NULL ) {
#ifdef macintosh /* MacOS classic you can't multithread, so no lock needed */
#ifdef __MACOS__ /* MacOS classic you can't multithread, so no lock needed */
;
#else
return(-1);
@ -168,7 +169,7 @@ static int SDL_StartEventThread(Uint32 flags)
/* The event thread will handle timers too */
SDL_SetTimerThreaded(2);
#if (defined(_WIN32) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
#if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
#undef SDL_CreateThread
SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL, NULL, NULL);
#else

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* Useful functions and variables from SDL_events.c */
#include "SDL_events.h"

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* Refresh event handling code for SDL */

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* General keyboard handling code for SDL */

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* General mouse handling code for SDL */

View file

@ -19,11 +19,10 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* General quit handling code for SDL */
#include "SDL_config.h"
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
/* Resize event handling code for SDL */

View file

@ -19,6 +19,7 @@
Sam Lantinga
slouken@libsdl.org
*/
#include "SDL_config.h"
#include "../video/SDL_sysvideo.h"
@ -28,7 +29,7 @@
#define MUST_THREAD_EVENTS
#endif
#ifdef WIN32 /* Win32 doesn't allow a separate event thread */
#ifdef __WIN32__ /* Win32 doesn't allow a separate event thread */
#define CANT_THREAD_EVENTS
#endif
@ -36,7 +37,7 @@
#define CANT_THREAD_EVENTS
#endif
#ifdef macintosh /* MacOS 7/8 don't support preemptive multi-tasking */
#ifdef __MACOS__ /* MacOS 7/8 don't support preemptive multi-tasking */
#define CANT_THREAD_EVENTS
#endif