VTK
Common
Core
vtkEndian.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
3
#ifndef vtkEndian_h
4
#define vtkEndian_h
5
6
/* Byte order. */
7
/* All compilers that support Mac OS X define either __BIG_ENDIAN__ or
8
__LITTLE_ENDIAN__ to match the endianness of the architecture being
9
compiled for. This is not necessarily the same as the architecture of the
10
machine doing the building. In order to support Universal Binaries on
11
Mac OS X, we prefer those defines to decide the endianness.
12
On other platforms we use the result of the TRY_RUN. */
13
#if !defined(__APPLE__)
14
/* #undef VTK_WORDS_BIGENDIAN */
15
#elif defined(__BIG_ENDIAN__)
16
# define VTK_WORDS_BIGENDIAN
17
#endif
18
19
#endif
Generated by
1.8.13 on Tue Oct 1 2024