X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FSolaris.h;h=b0822853248956d83348d28725590189b181a178;hb=00552e3875ee5f382db6c98286a241a7d0efe1b8;hp=57eee2cb49735d66279bbb1633116330fded582c;hpb=53ca1f3190680f3e86aebe0f72f7918d63f71e0d;p=oota-llvm.git diff --git a/include/llvm/Support/Solaris.h b/include/llvm/Support/Solaris.h index 57eee2cb497..b0822853248 100644 --- a/include/llvm/Support/Solaris.h +++ b/include/llvm/Support/Solaris.h @@ -11,12 +11,21 @@ * *===----------------------------------------------------------------------===*/ -#ifndef LLVM_SYSTEM_SOLARIS_H -#define LLVM_SYSTEM_SOLARIS_H +#ifndef LLVM_SUPPORT_SOLARIS_H +#define LLVM_SUPPORT_SOLARIS_H #include #include +/* Solaris doesn't have endian.h. SPARC is the only supported big-endian ISA. */ +#define BIG_ENDIAN 4321 +#define LITTLE_ENDIAN 1234 +#if defined(__sparc) || defined(__sparc__) +#define BYTE_ORDER BIG_ENDIAN +#else +#define BYTE_ORDER LITTLE_ENDIAN +#endif + #undef CS #undef DS #undef ES