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 2522

Summary: ANDROID macro is not defined when building with a standalone NDK.__ANDROID__ is the correct macro
Product: SDL Reporter: Dimitris Zenios <dimitris.zenios>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: HG 2.1   
Hardware: ARM   
OS: Android (All)   
Attachments: patch

Description Dimitris Zenios 2014-05-05 20:42:04 UTC
Created attachment 1639 [details]
patch

__ANDROID__ is the correct macro to check for an android system.ANDROID is only defined in NDK build system (.mk) and not in the standalone NDK.
Comment 1 Gabriel Jacobo 2014-05-10 18:57:43 UTC
https://hg.libsdl.org/SDL/rev/bce4122e6e87