1/*=========================================================================
2
3  Program:   Visualization Toolkit
4  Module:    vtkEndian.h.in
5
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10     This software is distributed WITHOUT ANY WARRANTY; without even
11     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12     PURPOSE.  See the above copyright notice for more information.
13
14=========================================================================*/
15#ifndef vtkEndian_h
16#define vtkEndian_h
17
18/* Byte order.  */
19/* All compilers that support Mac OS X define either __BIG_ENDIAN__ or
20   __LITTLE_ENDIAN__ to match the endianness of the architecture being
21   compiled for. This is not necessarily the same as the architecture of the
22   machine doing the building. In order to support Universal Binaries on
23   Mac OS X, we prefer those defines to decide the endianness.
24   On other platforms we use the result of the TRY_RUN. */
25#if !defined(__APPLE__)
26 #cmakedefine VTK_WORDS_BIGENDIAN
27#elif defined(__BIG_ENDIAN__)
28# define VTK_WORDS_BIGENDIAN
29#endif
30
31#endif
32