Remove _isatty from Android.h
authorPavel Labath <labath@google.com>
Mon, 8 Aug 2016 12:26:57 +0000 (12:26 +0000)
committerPavel Labath <labath@google.com>
Mon, 8 Aug 2016 12:26:57 +0000 (12:26 +0000)
it is just #defined to isatty anyway, which lldb already knows how to use.

llvm-svn: 277997

lldb/include/lldb/Host/android/Android.h
lldb/source/Host/common/File.cpp

index 8efc1a5..5a2b31b 100644 (file)
@@ -14,7 +14,6 @@
 #include <string>
 #include <errno.h>
 
-#define _isatty                        isatty
 #define SYS_tgkill             __NR_tgkill
 
 namespace std
index 9d4ab3d..89587a9 100644 (file)
@@ -1010,7 +1010,7 @@ File::CalculateInteractiveAndTerminal ()
     {
         m_is_interactive = eLazyBoolNo;
         m_is_real_terminal = eLazyBoolNo;
-#if (defined(_WIN32) || defined(__ANDROID_NDK__))
+#if defined(_WIN32)
         if (_isatty(fd))
         {
             m_is_interactive = eLazyBoolYes;