00001 #if defined(__ADSPBLACKFIN__) || defined(_MSC_VER) || defined(SWIG) 00002 #ifndef _STDINT_H 00003 #define _STDINT_H 00004 00005 /* ---------------------------------------------------------------------- */ 00017 #define INT32_MAX 2147483647 00018 00061 /* We need to undefine this block when DOXYGEN is running because there was some 00062 * trouble getting it to parse the standard integer types documentation */ 00063 #if defined(_MSC_VER) && !defined(DOXYGEN) 00064 00065 /* These are Microsoft specific fundamental data types */ 00066 00067 typedef signed __int8 int8_t; 00068 typedef signed __int16 int16_t; 00069 typedef signed __int32 int32_t; 00070 typedef signed __int64 int64_t; 00071 typedef unsigned __int8 uint8_t; 00072 typedef unsigned __int16 uint16_t; 00073 typedef unsigned __int32 uint32_t; 00074 typedef unsigned __int64 uint64_t; 00075 00076 typedef signed __int8 int_least8_t; 00077 typedef signed __int16 int_least16_t; 00078 typedef signed __int32 int_least32_t; 00079 typedef signed __int64 int_least64_t; 00080 typedef unsigned __int8 uint_least8_t; 00081 typedef unsigned __int16 uint_least16_t; 00082 typedef unsigned __int32 uint_least32_t; 00083 typedef unsigned __int64 uint_least64_t; 00084 00085 typedef signed __int8 int_fast8_t; 00086 typedef signed __int16 int_fast16_t; 00087 typedef signed __int32 int_fast32_t; 00088 typedef signed __int64 int_fast64_t; 00089 typedef unsigned __int8 uint_fast8_t; 00090 typedef unsigned __int16 uint_fast16_t; 00091 typedef unsigned __int32 uint_fast32_t; 00092 typedef unsigned __int64 uint_fast64_t; 00093 00094 typedef signed __int64 intmax_t; 00095 typedef unsigned __int64 uintmax_t; 00096 00097 #else 00098 00103 typedef signed char int8_t; 00104 typedef signed short int16_t; 00105 typedef signed int int32_t; 00106 typedef signed long long int64_t; 00107 typedef unsigned char uint8_t; 00108 typedef unsigned short uint16_t; 00109 typedef unsigned int uint32_t; 00110 typedef unsigned long long uint64_t; 00116 typedef signed char int_least8_t; 00117 typedef signed short int_least16_t; 00118 typedef signed int int_least32_t; 00119 typedef signed long long int_least64_t; 00120 typedef unsigned char uint_least8_t; 00121 typedef unsigned short uint_least16_t; 00122 typedef unsigned int uint_least32_t; 00123 typedef unsigned long long uint_least64_t; 00129 typedef signed char int_fast8_t; 00130 typedef signed int int_fast16_t; 00131 typedef signed int int_fast32_t; 00132 typedef signed long long int_fast64_t; 00133 typedef unsigned char uint_fast8_t; 00134 typedef unsigned int uint_fast16_t; 00135 typedef unsigned int uint_fast32_t; 00136 typedef unsigned long long uint_fast64_t; 00142 typedef long long intmax_t; 00143 typedef unsigned long long uintmax_t; 00147 #endif 00148 00149 #endif /* _STDINT_H */ 00150 #else 00151 #include <stdint.h> 00152 #endif /* defined(__ADSPBLACKFIN__) || defined(WIN32) */ 00153
Copyright (C) 2002 - 2007 |
Philip D.S. Thoren ( pthoren@users.sourceforge.net ) University Of Massachusetts at Lowell Robotics Lab |