FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
s_stdint.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 #ifndef S_STDINT_H
9 #define S_STDINT_H
10 
11 // this is minimum types set for fixed-size integers
12 
13 #ifdef WIN32
14 
15 #if _MSC_VER > 1000
16 #pragma once
17 #endif
18 
19 #include <limits.h>
20 #include <wchar.h>
21 
22 typedef __int8 int8_t;
23 typedef __int16 int16_t;
24 typedef __int32 int32_t;
25 typedef __int64 int64_t;
26 typedef unsigned __int8 uint8_t;
27 typedef unsigned __int16 uint16_t;
28 typedef unsigned __int32 uint32_t;
29 typedef unsigned __int64 uint64_t;
30 
31 #endif
32 
33 #ifdef Lynx
34 
35 typedef char int8_t;
36 typedef unsigned char uint8_t;
37 typedef short int16_t;
38 typedef unsigned short uint16_t;
39 typedef int int32_t;
40 typedef unsigned int uint32_t;
41 typedef long int64_t;
42 typedef unsigned long uint64_t;
43 
44 #endif
45 
46 #ifdef Linux
47 #include <stdint.h>
48 #endif
49 
50 #ifdef Solaris
51 #include <stdint.h>
52 #endif
53 
54 #ifdef Darwin
55 #include <stdint.h>
56 #endif
57 
58 #endif
unsigned char uint8_t
unsigned short int uint16_t
unsigned int uint32_t