Handle each of stderr/stdin/stdout separately.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 19 Jan 2007 21:30:39 +0000 (21:30 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 19 Jan 2007 21:30:39 +0000 (21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/DynamicLibrary.cpp

index 097e8b6ec4fcffb9d24afb817592fab5f37094a0..d4bf0f797fc4472b543a012747b8bc8a8dbb5751 100644 (file)
@@ -172,7 +172,11 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
   {
 #ifndef stdin
     EXPLICIT_SYMBOL(stdin);
+#endif
+#ifndef stdout
     EXPLICIT_SYMBOL(stdout);
+#endif
+#ifndef stderr
     EXPLICIT_SYMBOL(stderr);
 #endif
   }