comparison src/events/SDL_sysevents.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 782fd950bd46 a1b03ba2fcd0
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 #include "../video/SDL_sysvideo.h" 24 #include "../video/SDL_sysvideo.h"
24 25
25 /* Useful functions and variables from SDL_sysevents.c */ 26 /* Useful functions and variables from SDL_sysevents.c */
26 27
27 #ifdef __BEOS__ /* The Be event loop runs in a separate thread */ 28 #ifdef __BEOS__ /* The Be event loop runs in a separate thread */
28 #define MUST_THREAD_EVENTS 29 #define MUST_THREAD_EVENTS
29 #endif 30 #endif
30 31
31 #ifdef WIN32 /* Win32 doesn't allow a separate event thread */ 32 #ifdef __WIN32__ /* Win32 doesn't allow a separate event thread */
32 #define CANT_THREAD_EVENTS 33 #define CANT_THREAD_EVENTS
33 #endif 34 #endif
34 35
35 #ifdef IPOD /* iPod doesn't support threading at all */ 36 #ifdef IPOD /* iPod doesn't support threading at all */
36 #define CANT_THREAD_EVENTS 37 #define CANT_THREAD_EVENTS
37 #endif 38 #endif
38 39
39 #ifdef macintosh /* MacOS 7/8 don't support preemptive multi-tasking */ 40 #ifdef __MACOS__ /* MacOS 7/8 don't support preemptive multi-tasking */
40 #define CANT_THREAD_EVENTS 41 #define CANT_THREAD_EVENTS
41 #endif 42 #endif
42 43
43 #ifdef __OS2__ /* The OS/2 event loop runs in a separate thread */ 44 #ifdef __OS2__ /* The OS/2 event loop runs in a separate thread */
44 #define MUST_THREAD_EVENTS 45 #define MUST_THREAD_EVENTS