Define __ANDROID_API__ when specified as part of an Android target.
authorStephen Hines <srhines@google.com>
Fri, 11 Nov 2016 01:29:39 +0000 (01:29 +0000)
committerStephen Hines <srhines@google.com>
Fri, 11 Nov 2016 01:29:39 +0000 (01:29 +0000)
commita89d8ff0adc2782c53301733e308aa5954d7eff3
treea5099aea9aa2983286ca03dd207e960befe6ba36
parentbd1ee4830debd0c5b2622f25e2b9847b0f1d58e1
Define __ANDROID_API__ when specified as part of an Android target.

Summary:
This macro should be defined only when the user directly specifies an
API level as part of an Android target. For any regular Android target,
we leave this macro undefined.

Bug: https://llvm.org/bugs/show_bug.cgi?id=30940

Reviewers: eugenis, pirama

Subscribers: tberghammer, cfe-commits, pirama, eugenis, danalbert

Differential Revision: https://reviews.llvm.org/D26491

llvm-svn: 286543
clang/lib/Basic/Targets.cpp
clang/test/Preprocessor/init.c