00001 #ifndef _AI_BASIC_TYPES_
00002 #define _AI_BASIC_TYPES_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <stddef.h>
00025 #include "ASConfig.h"
00026 #if defined(MAC_ENV)
00027 #include <stdint.h>
00028 #include <sys/types.h>
00029 #endif
00030
00031
00032
00033 namespace ai
00034 {
00035 typedef signed char int8;
00036 typedef unsigned char uint8;
00037 typedef signed short int16;
00038 typedef unsigned short uint16;
00039
00040 #if defined(_WIN32)
00041 typedef __int64 int64;
00042 typedef unsigned __int64 uint64;
00043 typedef __int32 int32;
00044 typedef unsigned __int32 uint32;
00045 #endif
00046
00047 #if defined(MAC_ENV)
00048 typedef int64_t int64;
00049 typedef u_int64_t uint64;
00050 typedef int32_t int32;
00051 typedef u_int32_t uint32;
00052 #endif
00053 typedef ptrdiff_t sizediff_t;
00054 typedef intptr_t intptr;
00055 typedef uintptr_t uintptr;
00056 typedef size_t SizeType;
00057 }
00058
00059 #endif // _AI_BASIC_TYPES_