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

Commit

Permalink
Fixed bug 1600 - SDL_GetPlatform() returns "unknown os" on Android
Browse files Browse the repository at this point in the history
Pallav Nawani 2012-09-14 03:23:02 PDT

Looking through the code for SDL_GetPlatform(), it is obvious that the case for
Android platform doesn't exist. And hence SDL_GetPlatform() doesn't return a
useful string on Android Phones.
  • Loading branch information
slouken committed Sep 20, 2012
1 parent 2f4c14e commit 27d1b9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SDL.c
Expand Up @@ -248,6 +248,8 @@ SDL_GetPlatform()
{
#if __AIX__
return "AIX";
#elif __ANDROID__
return "Android";
#elif __HAIKU__
/* Haiku must appear here before BeOS, since it also defines __BEOS__ */
return "Haiku";
Expand Down

0 comments on commit 27d1b9b

Please sign in to comment.