p7zip: assorted fixes
[oi-userland.git] / components / developer / clang-18 / patches / 10-add-__illumos__-preprocessor-definition.patch
blobf82d6cd410e4b66230daa6f79c62de9a9a9a10a6
1 --- llvm-18.1.8.src/tools/clang/lib/Basic/Targets/OSTargets.h.orig
2 +++ llvm-18.1.8.src/tools/clang/lib/Basic/Targets/OSTargets.h
3 @@ -590,6 +590,7 @@
4 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
5 MacroBuilder &Builder) const override {
6 DefineStd(Builder, "sun", Opts);
7 + Builder.defineMacro("__illumos__");
8 DefineStd(Builder, "unix", Opts);
9 Builder.defineMacro("__svr4__");
10 Builder.defineMacro("__SVR4");