Types.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 SRI International
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef karto_sdk_TYPES_H
19 #define karto_sdk_TYPES_H
20 
21 #include <cstddef>
22 
27 #if defined(_MSC_VER)
28 
29  typedef signed __int8 kt_int8s;
30  typedef unsigned __int8 kt_int8u;
31 
32  typedef signed __int16 kt_int16s;
33  typedef unsigned __int16 kt_int16u;
34 
35  typedef signed __int32 kt_int32s;
36  typedef unsigned __int32 kt_int32u;
37 
38  typedef signed __int64 kt_int64s;
39  typedef unsigned __int64 kt_int64u;
40 
41 #else
42 
43  #include <stdint.h>
44 
45  typedef int8_t kt_int8s;
46  typedef uint8_t kt_int8u;
47 
48  typedef int16_t kt_int16s;
49  typedef uint16_t kt_int16u;
50 
51  typedef int32_t kt_int32s;
52  typedef uint32_t kt_int32u;
53 
54 #if defined(__LP64__)
55  typedef signed long kt_int64s;
56  typedef unsigned long kt_int64u;
57 #else
58  typedef signed long long kt_int64s;
59  typedef unsigned long long kt_int64u;
60 #endif
61 
62 #endif
63 
64 typedef bool kt_bool;
65 typedef char kt_char;
66 typedef float kt_float;
67 typedef double kt_double;
68 
69 #endif // karto_sdk_TYPES_H
kt_int64u
unsigned long long kt_int64u
Definition: Types.h:59
kt_int16s
int16_t kt_int16s
Definition: Types.h:48
kt_double
double kt_double
Definition: Types.h:67
kt_int16u
uint16_t kt_int16u
Definition: Types.h:49
kt_char
char kt_char
Definition: Types.h:65
kt_int32s
int32_t kt_int32s
Definition: Types.h:51
kt_int64s
signed long long kt_int64s
Definition: Types.h:58
kt_bool
bool kt_bool
Definition: Types.h:64
kt_int32u
uint32_t kt_int32u
Definition: Types.h:52
kt_int8s
int8_t kt_int8s
Definition: Types.h:45
kt_int8u
uint8_t kt_int8u
Definition: Types.h:46
kt_float
float kt_float
Definition: Types.h:66


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56