1 /*===- llvm/Support/Solaris.h ------------------------------------*- C++ -*-===*
3 * The LLVM Compiler Infrastructure
5 * This file is distributed under the University of Illinois Open Source
6 * License. See LICENSE.TXT for details.
8 *===----------------------------------------------------------------------===*
10 * This file contains portability fixes for Solaris hosts.
12 *===----------------------------------------------------------------------===*/
14 #ifndef LLVM_SUPPORT_SOLARIS_H
15 #define LLVM_SUPPORT_SOLARIS_H
17 #include <sys/types.h>
18 #include <sys/regset.h>
20 /* Solaris doesn't have endian.h. SPARC is the only supported big-endian ISA. */
21 #define BIG_ENDIAN 4321
22 #define LITTLE_ENDIAN 1234
23 #if defined(__sparc) || defined(__sparc__)
24 #define BYTE_ORDER BIG_ENDIAN
26 #define BYTE_ORDER LITTLE_ENDIAN