Use LLVM_ON_WIN32 everywhere
This commit is contained in:
parent
96612a35db
commit
74b12a0cfe
@ -10,9 +10,11 @@
|
||||
#ifndef CLING_UTILS_VALIDATION_H
|
||||
#define CLING_UTILS_VALIDATION_H
|
||||
|
||||
#include "llvm/Config/config.h" // for LLVM_ON_WIN32
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#ifdef _MSC_VER
|
||||
#ifdef LLVM_ON_WIN32
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# define NOGDI
|
||||
# include <Windows.h>
|
||||
@ -29,7 +31,7 @@ namespace cling {
|
||||
if (!P || P == (void *) -1)
|
||||
return false;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef LLVM_ON_WIN32
|
||||
MEMORY_BASIC_INFORMATION MBI;
|
||||
if (!VirtualQuery(P, &MBI, sizeof(MBI)))
|
||||
return false;
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <cstdio>
|
||||
|
||||
// Fragment copied from LLVM's raw_ostream.cpp
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(LLVM_ON_WIN32)
|
||||
#ifndef STDIN_FILENO
|
||||
# define STDIN_FILENO 0
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user