From 27d1b9b1b559ef066b9a1e9eeaed4ed457eaca58 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 19 Sep 2012 18:08:37 -0700 Subject: [PATCH] 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. --- src/SDL.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SDL.c b/src/SDL.c index 9dad9a4fc..1a88f83d2 100755 --- a/src/SDL.c +++ b/src/SDL.c @@ -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";