[cfe-commits] r150822 - /cfe/trunk/lib/Basic/Targets.cpp
David Chisnall
csdavec at swan.ac.uk
Fri Feb 17 10:35:11 PST 2012
Author: theraven
Date: Fri Feb 17 12:35:11 2012
New Revision: 150822
URL: http://llvm.org/viewvc/llvm-project?rev=150822&view=rev
Log:
On Solaris, define some standard macros that the Solaris headers require in
order to not be broken (by Solaris standards).
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=150822&r1=150821&r2=150822&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Fri Feb 17 12:35:11 2012
@@ -490,6 +490,10 @@
Builder.defineMacro("__ELF__");
Builder.defineMacro("__svr4__");
Builder.defineMacro("__SVR4");
+ Builder.defineMacro("_XOPEN_SOURCE", "500");
+ Builder.defineMacro("_LARGEFILE_SOURCE");
+ Builder.defineMacro("_LARGEFILE64_SOURCE");
+ Builder.defineMacro("__EXTENSIONS__");
}
public:
SolarisTargetInfo(const std::string& triple)
More information about the cfe-commits
mailing list