libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
types.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2012 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6 
7 
8 #ifndef _QI_TYPES_HPP_
9 # define _QI_TYPES_HPP_
10 
55 // visual studio 2008 and lower version
56 # if defined(_MSC_VER) && (_MSC_VER <= 1500)
57 namespace qi
58 {
59  typedef signed __int8 int8_t;
60  typedef signed __int16 int16_t;
61  typedef signed __int32 int32_t;
62  typedef signed __int64 int64_t;
63 
64  typedef unsigned __int8 uint8_t;
65  typedef unsigned __int16 uint16_t;
66  typedef unsigned __int32 uint32_t;
67  typedef unsigned __int64 uint64_t;
68 }
69 # else
70 # include <stdint.h>
71 namespace qi
72 {
73  typedef int8_t int8_t;
74  typedef int16_t int16_t;
75  typedef int32_t int32_t;
76  typedef int64_t int64_t;
77 
78  typedef uint8_t uint8_t;
79  typedef uint16_t uint16_t;
80  typedef uint32_t uint32_t;
81  typedef uint64_t uint64_t;
82 }
83 # endif
84 
85 #endif // _QI_TYPES_HPP_
uint16_t uint16_t
Cross-platform unsigned integer of length 16 bits (2 bytes).
Definition: types.hpp:79
int8_t int8_t
Cross-platform signed integer of length 8 bits (1 byte).
Definition: types.hpp:73
int32_t int32_t
Cross-platform signed integer of length 32 bits (4 bytes).
Definition: types.hpp:75
uint64_t uint64_t
Cross-platform unsigned integer of length 64 bits (8 bytes).
Definition: types.hpp:81
uint8_t uint8_t
Cross-platform unsigned integer of length 8 bits (1 byte).
Definition: types.hpp:78
int64_t int64_t
Cross-platform signed integer of length 64 bits (8 bytes).
Definition: types.hpp:76
int16_t int16_t
Cross-platform signed integer of length 16 bits (2 bytes).
Definition: types.hpp:74
uint32_t uint32_t
Cross-platform unsigned integer of length 32 bits (4 bytes).
Definition: types.hpp:80