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 - ANDROID macro is not defined when building with a standalone NDK.__ANDROID__ is the correct macro
Summary: ANDROID macro is not defined when building with a standalone NDK.__ANDROID__ ...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.1
Hardware: ARM Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-05 20:42 UTC by Dimitris Zenios
Modified: 2014-05-10 18:57 UTC (History)
1 user (show)

See Also:


Attachments
patch (2.94 KB, patch)
2014-05-05 20:42 UTC, Dimitris Zenios
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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