We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1600

Summary: SDL_GetPlatform() returns "unknown os"
Product: SDL Reporter: Pallav Nawani <pallavnawani>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Android (All)   
Attachments: patch for really complicated problem

Description Pallav Nawani 2012-09-14 03:23:02 UTC
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.
Comment 1 Philipp Wiesemann 2012-09-19 12:11:56 UTC
Created attachment 951 [details]
patch for really complicated problem

I attached a patch which adds the missing case for Android.
Comment 2 Ryan C. Gordon 2012-09-19 18:13:21 UTC
Whoops, Sam beat me to this; it's in there as hg changeset ada3545fed23.

Thanks!

--ryan.
Comment 3 Pallav Nawani 2012-09-19 22:51:19 UTC
(In reply to comment #1)
> Created attachment 951 [details]
> patch for really complicated problem
> 
> I attached a patch which adds the missing case for Android.

Complicated or not, It was a problem.