aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llpreprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/llpreprocessor.h')
-rw-r--r--linden/indra/llcommon/llpreprocessor.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h
index 9bc2847..2e4fd47 100644
--- a/linden/indra/llcommon/llpreprocessor.h
+++ b/linden/indra/llcommon/llpreprocessor.h
@@ -18,7 +18,8 @@
18 * There are special exceptions to the terms and conditions of the GPL as 18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception 19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or 20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 21 * online at
22 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 * 23 *
23 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -39,7 +40,16 @@
39#include <endian.h> 40#include <endian.h>
40#endif // LL_LINUX 41#endif // LL_LINUX
41 42
42#if (defined(LL_WINDOWS) || (defined(LL_LINUX) && (__BYTE_ORDER == __LITTLE_ENDIAN)) || (defined(LL_DARWIN) && defined(__LITTLE_ENDIAN__))) 43#if LL_SOLARIS
44# ifdef __sparc // Since we're talking Solaris 10 and up, only 64 bit is supported.
45# define LL_BIG_ENDIAN 1
46# define LL_SOLARIS_ALIGNED_CPU 1 // used to designate issues where SPARC alignment is addressed
47# define LL_SOLARIS_NON_MESA_GL 1 // The SPARC GL does not provide a MESA-based GL API
48# endif
49# include <sys/isa_defs.h> // ensure we know which end is up
50#endif // LL_SOLARIS
51
52#if (defined(LL_WINDOWS) || (defined(LL_LINUX) && (__BYTE_ORDER == __LITTLE_ENDIAN)) || (defined(LL_DARWIN) && defined(__LITTLE_ENDIAN__)) || (defined(LL_SOLARIS) && defined(__i386)))
43#define LL_LITTLE_ENDIAN 1 53#define LL_LITTLE_ENDIAN 1
44#else 54#else
45#define LL_BIG_ENDIAN 1 55#define LL_BIG_ENDIAN 1