Replace __ANDROID_NDK__ with __ANDROID__
authorPavel Labath <labath@google.com>
Fri, 2 Dec 2016 11:15:15 +0000 (11:15 +0000)
committerPavel Labath <labath@google.com>
Fri, 2 Dec 2016 11:15:15 +0000 (11:15 +0000)
commite705c8b5e606de939f34adccd493aabb219f944f
tree91d99b89ba34ad108936207bb175d814443eec49
parent964782adbb1dc17413707e173f323a19ff479c7d
Replace __ANDROID_NDK__ with __ANDROID__

Summary:
This replaces all the uses of the __ANDROID_NDK__ define with __ANDROID__. This
is a preparatory step to remove our custom android toolchain file and rely on
the standard android NDK one instead, which does not provide this define.
Instead I rely, on __ANDROID__, which is set by the compiler.

I haven't yet removed the cmake variable with the same name, as we will need to
do something completely different there -- NDK toolchain defines
CMAKE_SYSTEM_NAME to Android, while our current one pretends it's linux.

Reviewers: tberghammer, zturner

Subscribers: danalbert, srhines, mgorny, lldb-commits

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

llvm-svn: 288494
18 files changed:
lldb/cmake/platforms/Android.cmake
lldb/include/lldb/Core/RegularExpression.h
lldb/include/lldb/Host/Config.h
lldb/include/lldb/Host/Editline.h
lldb/include/lldb/Host/Host.h
lldb/include/lldb/Host/HostInfo.h
lldb/include/lldb/Host/Time.h
lldb/include/lldb/Host/linux/Personality.h
lldb/include/lldb/Host/posix/Fcntl.h
lldb/source/Host/common/Host.cpp
lldb/source/Host/common/Socket.cpp
lldb/source/Host/linux/ProcessLauncherLinux.cpp
lldb/source/Host/posix/HostInfoPosix.cpp
lldb/source/Plugins/Language/CPlusPlus/CxxStringTypes.cpp
lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
lldb/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp
lldb/source/Utility/PseudoTerminal.cpp
lldb/tools/driver/Driver.cpp