StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DbEndian.h
1 #ifndef ENDIAN
2 #define ENDIAN
3 /*************************************************************************
4  * *
5  * based on ROOT 2.22.10 RConfig.h *
6  * *
7  *************************************************************************/
8 
9 #ifdef __hpux
10 # define BIG_ENDIAN
11 #endif
12 
13 #ifdef _AIX
14 # define BIG_ENDIAN
15 #endif
16 
17 #ifdef __alpha
18 # ifndef __VMS
19 # define LITTLE_ENDIAN
20 # else
21 # define BIG_ENDIAN
22 # endif
23 #endif
24 
25 #ifdef __sun
26 # ifdef __i386
27 # define LITTLE_ENDIAN
28 # else
29 # define BIG_ENDIAN
30 # endif
31 #endif
32 
33 #ifdef __sgi
34 # define BIG_ENDIAN
35 #endif
36 
37 #if defined(__linux) && !defined(__powerpc) && !defined(LITTLE_ENDIAN)
38 # define LITTLE_ENDIAN
39 #endif
40 
41 #if defined(__linux) && defined(__powerpc)
42 # define BIG_ENDIAN
43 #endif
44 
45 #if defined(__FreeBSD__)
46 # define LITTLE_ENDIAN
47 #endif
48 
49 #ifdef BORLAND /* 16-bit MSDOS case */
50 # define LITTLE_ENDIAN
51 #endif
52 
53 #ifdef _WIN32
54 # define LITTLE_ENDIAN
55 #endif
56 
57 
58 #endif
59