Fixed bug 1600 - SDL_GetPlatform() returns "unknown os" on Android
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.
This commit is contained in:
parent
ef68bf1b32
commit
d9c447f5e9
1 changed files with 2 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue