Skip to content

Commit 0c1941c

Browse files
author
David Chisnall
committed
On Solaris, define some standard macros that the Solaris headers require in
order to not be broken (by Solaris standards). llvm-svn: 150822
1 parent 9017b84 commit 0c1941c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Basic/Targets.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ class SolarisTargetInfo : public OSTargetInfo<Target> {
490490
Builder.defineMacro("__ELF__");
491491
Builder.defineMacro("__svr4__");
492492
Builder.defineMacro("__SVR4");
493+
Builder.defineMacro("_XOPEN_SOURCE", "500");
494+
Builder.defineMacro("_LARGEFILE_SOURCE");
495+
Builder.defineMacro("_LARGEFILE64_SOURCE");
496+
Builder.defineMacro("__EXTENSIONS__");
493497
}
494498
public:
495499
SolarisTargetInfo(const std::string& triple)

0 commit comments

Comments
 (0)