mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
Rename Windows.h to WindowsSupport.h to avoid ambiguity
llvm-svn: 201258
This commit is contained in:
parent
c12b9865cd
commit
9cb7be892d
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -11,7 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Windows.h"
|
||||
#include "WindowsSupport.h"
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <imagehlp.h>
|
||||
|
@ -11,7 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Windows.h"
|
||||
#include "WindowsSupport.h"
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -11,7 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Windows.h"
|
||||
#include "WindowsSupport.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include <cstdio>
|
||||
|
@ -16,7 +16,7 @@
|
||||
//=== is guaranteed to work on *all* Win32 variants.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Windows.h"
|
||||
#include "WindowsSupport.h"
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
|
@ -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>
|
||||
|
@ -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 {
|
||||
|
@ -11,7 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Windows.h"
|
||||
#include "WindowsSupport.h"
|
||||
#include <cctype>
|
||||
#include <time.h>
|
||||
|
||||
|
@ -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.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user