forked from OSchip/llvm-project
Initialization: correct macro usage
`_MSC_VER` indiciates that you are building with MSVC, not that you are building for Windows. Use `_WIN32` (which identifies Win32 and Win64). llvm-svn: 359817
This commit is contained in:
parent
509c884048
commit
d179ce99d6
|
@ -24,7 +24,7 @@
|
|||
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_WIN32)
|
||||
#include "Plugins/Process/Windows/Common/ProcessWindowsLog.h"
|
||||
#include "lldb/Host/windows/windows.h"
|
||||
#endif
|
||||
|
@ -41,7 +41,7 @@ SystemInitializerCommon::SystemInitializerCommon() {}
|
|||
SystemInitializerCommon::~SystemInitializerCommon() {}
|
||||
|
||||
llvm::Error SystemInitializerCommon::Initialize() {
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_WIN32)
|
||||
const char *disable_crash_dialog_var = getenv("LLDB_DISABLE_CRASH_DIALOG");
|
||||
if (disable_crash_dialog_var &&
|
||||
llvm::StringRef(disable_crash_dialog_var).equals_lower("true")) {
|
||||
|
@ -106,7 +106,7 @@ llvm::Error SystemInitializerCommon::Initialize() {
|
|||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
ProcessPOSIXLog::Initialize();
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_WIN32)
|
||||
ProcessWindowsLog::Initialize();
|
||||
#endif
|
||||
|
||||
|
@ -121,7 +121,7 @@ void SystemInitializerCommon::Terminate() {
|
|||
EmulateInstructionMIPS::Terminate();
|
||||
EmulateInstructionMIPS64::Terminate();
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_WIN32)
|
||||
ProcessWindowsLog::Terminate();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue