Rename Windows.h to WindowsSupport.h to avoid ambiguity

llvm-svn: 201258
This commit is contained in:
Reid Kleckner 2014-02-12 21:26:20 +00:00
parent c12b9865cd
commit 9cb7be892d
14 changed files with 18 additions and 15 deletions

View File

@ -132,7 +132,7 @@ CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) {
#ifdef LLVM_ON_WIN32
#include "Windows/Windows.h"
#include "Windows/WindowsSupport.h"
// On Windows, we can make use of vectored exception handling to
// catch most crashing situations. Note that this does mean

View File

@ -103,7 +103,7 @@ void llvm::llvm_execute_on_thread(void (*Fn)(void*), void *UserData,
::pthread_attr_destroy(&Attr);
}
#elif LLVM_ENABLE_THREADS!=0 && defined(LLVM_ON_WIN32)
#include "Windows/Windows.h"
#include "Windows/WindowsSupport.h"
#include <process.h>
struct ThreadInfo {

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
#ifdef __MINGW32__
#include <imagehlp.h>

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
#include <cstdio>
#include <string>

View File

@ -17,7 +17,7 @@
#include "llvm/Support/Process.h"
// The Windows.h header must be the last one included.
#include "Windows.h"
#include "WindowsSupport.h"
namespace {

View File

@ -16,7 +16,7 @@
//=== is guaranteed to work on *all* Win32 variants.
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
#include "llvm/Support/Mutex.h"
namespace llvm {

View File

@ -24,7 +24,7 @@
// These two headers must be included last, and make sure shlobj is required
// after Windows.h to make sure it picks up our definition of _WIN32_WINNT
#include "Windows.h"
#include "WindowsSupport.h"
#include <shlobj.h>
#undef max

View File

@ -15,7 +15,7 @@
#include <malloc.h>
// The Windows.h header must be after LLVM and standard headers.
#include "Windows.h"
#include "WindowsSupport.h"
#include <direct.h>
#include <io.h>

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/Support/FileSystem.h"
#include <cstdio>

View File

@ -16,7 +16,7 @@
//=== is guaranteed to work on *all* Win32 variants.
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
namespace llvm {
using namespace sys;

View File

@ -17,7 +17,7 @@
#include <vector>
// The Windows.h header must be after LLVM and standard headers.
#include "Windows.h"
#include "WindowsSupport.h"
#ifdef __MINGW32__
#include <imagehlp.h>

View File

@ -16,7 +16,7 @@
//=== is guaranteed to work on *all* Win32 variants.
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
#include "llvm/Support/ThreadLocal.h"
namespace llvm {

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "Windows.h"
#include "WindowsSupport.h"
#include <cctype>
#include <time.h>

View File

@ -1,4 +1,4 @@
//===- Win32/Win32.h - Common Win32 Include File ----------------*- C++ -*-===//
//===- WindowsSupport.h - Common Windows Include File -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@ -7,7 +7,10 @@
//
//===----------------------------------------------------------------------===//
//
// This file defines things specific to Win32 implementations.
// This file defines things specific to Windows implementations. In addition to
// providing some helpers for working with win32 APIs, this header wraps
// <windows.h> with some portability macros. Always include WindowsSupport.h
// instead of including <windows.h> directly.
//
//===----------------------------------------------------------------------===//