diff options
author | Richard Pennington <rich@pennware.com> | 2012-11-09 23:32:57 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2012-11-13 18:15:10 +0100 |
commit | 7669d1e334e6b96455eece78da43bf830b93d697 (patch) | |
tree | 6649acfaa61ec6780498b55fa8015ca4f7a6cdae /arch/ppc/bits/endian.h | |
parent | 1e717ea3d2a864e00e507f1a70a892c551955f1b (diff) | |
download | musl-7669d1e334e6b96455eece78da43bf830b93d697.tar.gz musl-7669d1e334e6b96455eece78da43bf830b93d697.tar.xz musl-7669d1e334e6b96455eece78da43bf830b93d697.zip |
import preliminary ppc work by rdp.
Diffstat (limited to 'arch/ppc/bits/endian.h')
-rw-r--r-- | arch/ppc/bits/endian.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/ppc/bits/endian.h b/arch/ppc/bits/endian.h new file mode 100644 index 00000000..4442abf4 --- /dev/null +++ b/arch/ppc/bits/endian.h @@ -0,0 +1,15 @@ +#ifdef __BIG_ENDIAN__ + #if __BIG_ENDIAN__ + #define __BYTE_ORDER __BIG_ENDIAN + #endif +#endif /* __BIG_ENDIAN__ */ + +#ifdef __LITTLE_ENDIAN__ + #if __LITTLE_ENDIAN__ + #define __BYTE_ORDER __LITTLE_ENDIAN + #endif +#endif /* __LITTLE_ENDIAN__ */ + +#ifndef __BYTE_ORDER + #define __BYTE_ORDER __BIG_ENDIAN +#endif |