libqi-api  2.0.6.8
/home/opennao/work/master/sdk/libqi/qi/types.hpp
Go to the documentation of this file.
00001 #pragma once
00002 /*
00003 ** Author(s):
00004 **  - Cuche Herve <hcuche@aldebaran-robotics.com>
00005 **
00006 ** Copyright (C) 2012 Aldebaran Robotics
00007 */
00008 
00009 #ifndef _QI_TYPES_HPP_
00010 #define _QI_TYPES_HPP_
00011 
00012 // visual studio 2008 and lower version
00013 # if defined(_MSC_VER) && (_MSC_VER <= 1500)
00014 namespace qi
00015 {
00016   typedef signed __int8     int8_t;
00017   typedef signed __int16    int16_t;
00018   typedef signed __int32    int32_t;
00019   typedef signed __int64    int64_t;
00020 
00021   typedef unsigned __int8   uint8_t;
00022   typedef unsigned __int16  uint16_t;
00023   typedef unsigned __int32  uint32_t;
00024   typedef unsigned __int64  uint64_t;
00025 }
00026 # else
00027 #  include <stdint.h>
00028 namespace qi
00029 {
00030   typedef int8_t   int8_t;
00031   typedef int16_t  int16_t;
00032   typedef int32_t  int32_t;
00033   typedef int64_t  int64_t;
00034 
00035   typedef uint8_t  uint8_t;
00036   typedef uint16_t uint16_t;
00037   typedef uint32_t uint32_t;
00038   typedef uint64_t uint64_t;
00039 }
00040 # endif
00041 
00042 #endif  // _QI_TYPES_HPP_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines