mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[LLDB] Check for _WIN32 instead of _MSC_VER for code specific to windows in general
These ifdefs contain code that isn't specific to MSVC but useful for any windows target, like MinGW. Differential Revision: https://reviews.llvm.org/D67893 llvm-svn: 372592
This commit is contained in:
@@ -579,7 +579,7 @@ void IOHandlerEditline::PrintAsync(Stream *stream, const char *s, size_t len) {
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN32
|
||||
const char *prompt = GetPrompt();
|
||||
if (prompt) {
|
||||
// Back up over previous prompt using Windows API
|
||||
@@ -594,7 +594,7 @@ void IOHandlerEditline::PrintAsync(Stream *stream, const char *s, size_t len) {
|
||||
}
|
||||
#endif
|
||||
IOHandler::PrintAsync(stream, s, len);
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN32
|
||||
if (prompt)
|
||||
IOHandler::PrintAsync(GetOutputStreamFile().get(), prompt,
|
||||
strlen(prompt));
|
||||
|
||||
Reference in New Issue
Block a user