summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-05-13 14:24:15 (GMT)
committerBrad King <brad.king@kitware.com>2008-05-13 14:24:15 (GMT)
commit98127bc4a3d9714aec99d0fe171893741e386633 (patch)
tree658084f38a2134254c9d3eba13b067fd7a6289d3 /Source
parent7499bb250d8f48d44a1fd6ab0df1ad308e5eda5f (diff)
downloadCMake-98127bc4a3d9714aec99d0fe171893741e386633.zip
CMake-98127bc4a3d9714aec99d0fe171893741e386633.tar.gz
CMake-98127bc4a3d9714aec99d0fe171893741e386633.tar.bz2
ENH: Add ARM support to KWSys CPU header.
- Patch from Pierre Habouzit
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/CPU.h.in8
1 files changed, 8 insertions, 0 deletions
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