From 98127bc4a3d9714aec99d0fe171893741e386633 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 13 May 2008 10:24:15 -0400 Subject: ENH: Add ARM support to KWSys CPU header. - Patch from Pierre Habouzit --- Source/kwsys/CPU.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/kwsys/CPU.h.in b/Source/kwsys/CPU.h.in index d9c1ca8..3adf458 100644 --- a/Source/kwsys/CPU.h.in +++ b/Source/kwsys/CPU.h.in @@ -32,6 +32,14 @@ #elif defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA) # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE +/* Arm */ +#elif defined(__arm__) +# if !defined(__ARMEB__) +# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE +# else +# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG +# endif + /* Intel x86 */ #elif defined(__i386) || defined(__i386__) || defined(_M_IX86) # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE -- cgit v0.12