00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00021 #ifndef AVIS_STDTYPES_H
00022 #define AVIS_STDTYPES_H
00023
00024 typedef double real64_t;
00025
00026 #include "avis_client_config.h"
00027
00028 #ifdef HAVE_STDINT_H
00029 #include <stdint.h>
00030 #elif defined(HAVE_INTTYPES_H)
00031 #include <inttypes.h>
00032 #elif defined(_WIN32)
00033 typedef __int8 int8_t;
00034 typedef __int16 int16_t;
00035 typedef __int32 int32_t;
00036 typedef __int64 int64_t;
00037
00038 typedef unsigned __int8 uint8_t;
00039 typedef unsigned __int16 uint16_t;
00040 typedef unsigned __int32 uint32_t;
00041 typedef unsigned __int64 uint64_t;
00042 #else
00043 typedef signed char int8_t;
00044 typedef signed short int16_t;
00045 typedef signed int int32_t;
00046 typedef signed long long int64_t;
00047
00048 typedef unsigned char uint8_t;
00049 typedef unsigned short uint16_t;
00050 typedef unsigned int uint32_t;
00051 typedef unsigned long long uint64_t;
00052 #endif
00053
00054 #ifdef HAVE_STDBOOL_H
00055 #include <stdbool.h>
00056 #else
00057 #ifndef __cplusplus
00058 #define bool int
00059 #define true 1
00060 #define false 0
00061 #endif
00062 #endif
00063
00064 #endif