From 870b3c5429ec112d70c920509ea7f1069cddeae1 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 5 Jul 2011 14:56:12 +0000 Subject: [PATCH] Don't define _BIG_ENDIAN for NetBSD/PowerPC. llvm-svn: 134411 --- clang/lib/Basic/Targets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index cc3dd0a6f668..5bad668442e1 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -674,7 +674,8 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, } // Target properties. - Builder.defineMacro("_BIG_ENDIAN"); + if (getTriple().getOS() != llvm::Triple::NetBSD) + Builder.defineMacro("_BIG_ENDIAN"); Builder.defineMacro("__BIG_ENDIAN__"); // Subtarget options.