forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for building on solaris, working around namespace
polution problems from system headers. Patch by Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52682 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*===- llvm/System/Solaris.h ------------------------------------*- C++ -*-===* | ||
* | ||
* The LLVM Compiler Infrastructure | ||
* | ||
* This file is distributed under the University of Illinois Open Source | ||
* License. See LICENSE.TXT for details. | ||
* | ||
*===----------------------------------------------------------------------===* | ||
* | ||
* This file contains portability fixes for Solaris hosts. | ||
* | ||
*===----------------------------------------------------------------------===*/ | ||
|
||
#ifndef LLVM_SYSTEM_SOLARIS_H | ||
#define LLVM_SYSTEM_SOLARIS_H | ||
|
||
#include <sys/types.h> | ||
#include <sys/regset.h> | ||
|
||
#undef CS | ||
#undef DS | ||
#undef ES | ||
#undef FS | ||
#undef GS | ||
#undef SS | ||
#undef EAX | ||
#undef ECX | ||
#undef EDX | ||
#undef EBX | ||
#undef ESP | ||
#undef EBP | ||
#undef ESI | ||
#undef EDI | ||
#undef EIP | ||
#undef UESP | ||
#undef EFL | ||
#undef ERR | ||
#undef TRAPNO | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters