summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/StreamFile.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-02-08 00:35:34 +0000
committerGreg Clayton <gclayton@apple.com>2011-02-08 00:35:34 +0000
commit453194664d00009586093b55cb2c7a1a4062827b (patch)
treec97945b90c1ea9aac133c96ddff7d27328850de9 /lldb/source/Core/StreamFile.cpp
parent14889fc671ee30abbdd2fd54c0a420a4e93c381b (diff)
downloadbcm5719-llvm-453194664d00009586093b55cb2c7a1a4062827b.tar.gz
bcm5719-llvm-453194664d00009586093b55cb2c7a1a4062827b.zip
Cleaned up the dynamic library open/getsymbol/close code to use abstracted
flags such that symbols can be searched for within a shared library if desired. Platforms that support the RTLD_FIRST flag can still take advantage of their quicker lookups, and other platforms can still get the same fucntionality with a little extra work. Also changed LLDB_CONFIG flags over to either being defined, or not being defined to stay in line with current open source practices and to prepare for using autoconf or cmake to configure LLDB builds. llvm-svn: 125064
Diffstat (limited to 'lldb/source/Core/StreamFile.cpp')
-rw-r--r--lldb/source/Core/StreamFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/StreamFile.cpp b/lldb/source/Core/StreamFile.cpp
index f422f8ad04c..90959105494 100644
--- a/lldb/source/Core/StreamFile.cpp
+++ b/lldb/source/Core/StreamFile.cpp
@@ -98,10 +98,10 @@ StreamFile::Open (const char *path, const char *permissions)
void
StreamFile::SetLineBuffered ()
{
-#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
+#ifdef LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
if (m_file != NULL)
setlinebuf (m_file);
-#endif // #if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
+#endif // #ifdef LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
}
void
OpenPOWER on IntegriCloud