diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-18 11:54:44 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-18 11:54:44 +0000 |
commit | e8178e2a99ae5d7ccfe5882804a294fd0d3f453f (patch) | |
tree | 3ee8c14c159dee1ebe94d429049fc879aea5fce2 | |
parent | 6ee8d3312e5cb59777c7ddf7fb9ebc2eb1a780f1 (diff) | |
download | compiler-rt-e8178e2a99ae5d7ccfe5882804a294fd0d3f453f.tar.gz |
Add support for ellcc, Credit to Richard Pennington.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@79332 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/endianness.h | 2 | ||||
-rw-r--r-- | test/Unit/endianness.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/endianness.h b/lib/endianness.h index a123acd2d..28b0ace61 100644 --- a/lib/endianness.h +++ b/lib/endianness.h @@ -52,7 +52,7 @@ /* .. */ /* Mac OSX has __BIG_ENDIAN__ or __LITTLE_ENDIAN__ automatically set by the compiler (at least with GCC) */ -#if defined(__APPLE__) && defined(__MACH__) +#if defined(__APPLE__) && defined(__MACH__) || defined(__ellcc__ ) #ifdef __BIG_ENDIAN__ #if __BIG_ENDIAN__ diff --git a/test/Unit/endianness.h b/test/Unit/endianness.h index a123acd2d..28b0ace61 100644 --- a/test/Unit/endianness.h +++ b/test/Unit/endianness.h @@ -52,7 +52,7 @@ /* .. */ /* Mac OSX has __BIG_ENDIAN__ or __LITTLE_ENDIAN__ automatically set by the compiler (at least with GCC) */ -#if defined(__APPLE__) && defined(__MACH__) +#if defined(__APPLE__) && defined(__MACH__) || defined(__ellcc__ ) #ifdef __BIG_ENDIAN__ #if __BIG_ENDIAN__ |