Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed some __BEOS__ vs __HAIKU__ preprocessor tests (thanks, Axel!).
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1773.
  • Loading branch information
icculus committed Jul 5, 2013
1 parent 26302f4 commit 651d1e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/SDL.c
Expand Up @@ -371,9 +371,6 @@ SDL_GetPlatform()
return "AIX";
#elif __ANDROID__
return "Android";
#elif __HAIKU__
/* Haiku must appear here before BeOS, since it also defines __BEOS__ */
return "Haiku";
#elif __BEOS__
return "BeOS";
#elif __BSDI__
Expand All @@ -382,6 +379,8 @@ SDL_GetPlatform()
return "Dreamcast";
#elif __FREEBSD__
return "FreeBSD";
#elif __HAIKU__
return "Haiku";
#elif __HPUX__
return "HP-UX";
#elif __IRIX__
Expand Down
3 changes: 2 additions & 1 deletion src/events/SDL_sysevents.h
Expand Up @@ -24,7 +24,8 @@

/* Useful functions and variables from SDL_sysevents.c */

#ifdef __BEOS__ /* The Be event loop runs in a separate thread */
#if defined(__BEOS__) || defined(__HAIKU__)
/* The Be and Haiku event loops run in a separate thread */
#define MUST_THREAD_EVENTS
#endif

Expand Down

0 comments on commit 651d1e4

Please sign in to comment.