libqi-api  2.1.4.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
types.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Author(s):
4 ** - Cuche Herve <hcuche@aldebaran-robotics.com>
5 **
6 ** Copyright (C) 2012 Aldebaran Robotics
7 */
8 
9 #ifndef _QI_TYPES_HPP_
10 #define _QI_TYPES_HPP_
11 
12 // visual studio 2008 and lower version
13 # if defined(_MSC_VER) && (_MSC_VER <= 1500)
14 namespace qi
15 {
16  typedef signed __int8 int8_t;
17  typedef signed __int16 int16_t;
18  typedef signed __int32 int32_t;
19  typedef signed __int64 int64_t;
20 
21  typedef unsigned __int8 uint8_t;
22  typedef unsigned __int16 uint16_t;
23  typedef unsigned __int32 uint32_t;
24  typedef unsigned __int64 uint64_t;
25 }
26 # else
27 # include <stdint.h>
28 namespace qi
29 {
30  typedef int8_t int8_t;
31  typedef int16_t int16_t;
32  typedef int32_t int32_t;
33  typedef int64_t int64_t;
34 
35  typedef uint8_t uint8_t;
36  typedef uint16_t uint16_t;
37  typedef uint32_t uint32_t;
38  typedef uint64_t uint64_t;
39 }
40 # endif
41 
42 #endif // _QI_TYPES_HPP_
int32_t int32_t
Cross-platform signed integer of length 32 bits (4 bytes).
Definition: types.hpp:32
uint16_t uint16_t
Cross-platform unsigned integer of length 16 bits (2 bytes).
Definition: types.hpp:36
uint64_t uint64_t
Cross-platform unsigned integer of length 64 bits (8 bytes).
Definition: types.hpp:38
int64_t int64_t
Cross-platform signed integer of length 64 bits (8 bytes).
Definition: types.hpp:33
int16_t int16_t
Cross-platform signed integer of length 16 bits (2 bytes).
Definition: types.hpp:31
uint32_t uint32_t
Cross-platform unsigned integer of length 32 bits (4 bytes).
Definition: types.hpp:37
uint8_t uint8_t
Cross-platform unsigned integer of length 8 bits (1 byte).
Definition: types.hpp:35
int8_t int8_t
Cross-platform signed integer of length 8 bits (1 byte).
Definition: types.hpp:30