Use LLVM_ON_WIN32 everywhere

This commit is contained in:
Bertrand Bellenot 2016-02-23 11:12:01 +01:00 committed by sftnight
parent 96612a35db
commit 74b12a0cfe
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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