summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-07-30 08:33:21 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-07-30 08:33:21 +0000
commit3b6c466e961ad97b75a1df79624fe1bc8db02b40 (patch)
tree5b812e38418d21f3f2109867ae56e10fbd347269 /lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
parent8d5f9ab2cc2a76d490ffc6317d9552b05901ff63 (diff)
downloadbcm5719-llvm-3b6c466e961ad97b75a1df79624fe1bc8db02b40.tar.gz
bcm5719-llvm-3b6c466e961ad97b75a1df79624fe1bc8db02b40.zip
Use __linux__ macro throughout, instead of ocasional __linux.
__linux is not universally defined across all standards versions, compilers and architectures. Specifically at C99 and up, it's not defined in GCC on powerpc platform. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28314 Bugzilla: http://llvm.org/bugs/show_bug.cgi?id=20380 Patch by Dimitri John Ledkov <dimitri.ledkov@canonical.com> llvm-svn: 214291
Diffstat (limited to 'lldb/tools/lldb-mi/MIUtilSystemLinux.cpp')
-rw-r--r--lldb/tools/lldb-mi/MIUtilSystemLinux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp b/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
index de1431782df..9c4deb45d9d 100644
--- a/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
+++ b/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
@@ -22,7 +22,7 @@
// Include compiler configuration
#include "MICmnConfig.h"
-#if defined( __FreeBSD__ ) || defined( __linux )
+#if defined( __FreeBSD__ ) || defined( __linux__ )
// In-house headers:
#include "MIUtilSystemLinux.h"
@@ -119,4 +119,4 @@ bool CMIUtilSystemLinux::GetLogFilesPath( CMIUtilString & vrwFileNamePath ) cons
return MIstatus::success;
}
-#endif // #if defined( __linux )
+#endif // #if defined( __linux__ )
OpenPOWER on IntegriCloud