X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FSolaris.h;h=b0822853248956d83348d28725590189b181a178;hb=00552e3875ee5f382db6c98286a241a7d0efe1b8;hp=6228c4b43b52566a0dea39ddff5f926fa9187f12;hpb=674be02d525d4e24bc6943ed9274958c580bcfbc;p=oota-llvm.git diff --git a/include/llvm/Support/Solaris.h b/include/llvm/Support/Solaris.h index 6228c4b43b5..b0822853248 100644 --- a/include/llvm/Support/Solaris.h +++ b/include/llvm/Support/Solaris.h @@ -17,6 +17,15 @@ #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