FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
typedefs.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /* This central include file defines data types for all platforms */
9 
10 #ifndef TYPEDEF_H
11 #define TYPEDEF_H
12 
13 /* Platform independent definitions */
14 
15 typedef char CHARS;
16 typedef unsigned char CHARU;
17 typedef char INTS1;
18 typedef unsigned char INTU1;
19 typedef short INTS2;
20 typedef unsigned short INTU2;
21 typedef int INTS4;
22 typedef unsigned int INTU4;
23 typedef float REAL4;
24 typedef double REAL8;
25 
26 /* Platform specific definitions */
27 
28 #ifdef WIN32
29 #define MBS_ENDIAN 0 /* little endian */
30 #define GSI__WINNT
31 #include "typedefs_nt.h"
32 typedef unsigned long ADDRS;
33 #endif
34 
35 #ifdef Linux
36 #define MBS_ENDIAN 0 /* little endian */
37 #define GSI__LINUX
38 #define GSI__UNIX
39 typedef unsigned long ADDRS;
40 #endif
41 
42 #ifdef Solaris
43 #define MBS_ENDIAN 1 /* big endian */
44 #define GSI__SOLARIS
45 #define GSI__SLARIS
46 typedef unsigned long ADDRS;
47 #endif
48 
49 #ifdef Darwin
50 #define MBS_ENDIAN 0 /* little endian */
51 #define GSI__LINUX
52 #define GSI__UNIX
53 typedef unsigned long ADDRS;
54 #endif
55 
56 #ifdef _AIX
57 #define MBS_ENDIAN 1 /* big endian */
58 #define GSI__AIX
59 #define GSI__UNIX
60 typedef long long INTS8;
61 typedef unsigned long long INTU8;
62 typedef unsigned long ADDRS;
63 #endif
64 
65 #ifdef __osf__
66 #ifdef __alpha
67 #define MBS_ENDIAN 1 /* big endian */
68 #define AXP
69 #define GSI__UNIX_AXP
70 #define GSI__UNIX
71 typedef long INTS8;
72 typedef unsigned long INTU8;
73 typedef unsigned long ADDRS;
74 #endif
75 #endif
76 
77 #ifdef _HPUX_SOURCE
78 #define MBS_ENDIAN 1 /* big endian */
79 #define GSI__HPUX
80 #define GSI__UNIX
81 typedef long INTS8;
82 typedef unsigned long INTU8;
83 typedef unsigned long ADDRS;
84 #endif
85 
86 #ifdef Lynx
87 #define MBS_ENDIAN 1 /* big endian */
88 #define GSI__LYNX
89 #define GSI__UNIX
90 typedef long INTS8;
91 typedef unsigned long INTU8;
92 typedef unsigned long ADDRS;
93 #endif
94 
95 #ifdef VMS
96 #define MBS_ENDIAN 0 /* little endian */
97 #define GSI__VMS
98 typedef long INTS8;
99 typedef unsigned long INTU8;
100 typedef unsigned long ADDRS;
101 #ifdef __alpha
102 #define GSI__VMS_AXP
103 #define AXP
104 #endif
105 #ifdef VAX
106 #define GSI__VMS_VAX
107 #endif
108 #endif
109 
110 #endif
char INTS1
Definition: typedefs.h:17
short INTS2
Definition: typedefs.h:19
float REAL4
Definition: typedefs.h:23
unsigned int INTU4
Definition: typedefs.h:22
double REAL8
Definition: typedefs.h:24
int INTS4
Definition: typedefs.h:21
unsigned char INTU1
Definition: typedefs.h:18
unsigned short INTU2
Definition: typedefs.h:20
char CHARS
Definition: typedefs.h:15
unsigned char CHARU
Definition: typedefs.h:16